/[classpath]/classpath/examples/gnu/classpath/examples/swing/Demo.java
ViewVC logotype

Diff of /classpath/examples/gnu/classpath/examples/swing/Demo.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22 by trebligd, Tue Oct 4 14:12:34 2005 UTC revision 1.23 by langel, Thu Oct 20 20:21:29 2005 UTC
# Line 744  public class Demo Line 744  public class Demo
744      return c;      return c;
745    }    }
746    
747    public static JRadioButton mkRadio(String label)    public static JPanel mkRadio(String label)
748    {    {
749        JPanel p = new JPanel();
750      JRadioButton c = new JRadioButton(label);      JRadioButton c = new JRadioButton(label);
751      c.setFont(new Font("Luxi", Font.PLAIN, 14));      JRadioButton d = new JRadioButton("not " + label);
752      return c;      ButtonGroup bg = new ButtonGroup();
753        bg.add(c);
754        bg.add(d);
755        p.add(c);
756        p.add(d);
757        return p;
758    }    }
759    
760    public static JList mkList(Object[] elts)    public static JList mkList(Object[] elts)

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26