/[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.4 by mark, Sat Sep 4 20:31:20 2004 UTC revision 1.5 by mark, Sun Sep 5 11:31:06 2004 UTC
# Line 550  public class Demo Line 550  public class Demo
550      return tabs;      return tabs;
551    }    }
552    
553      public static JComboBox mkComboBox(String[] names)
554      {
555        JComboBox box = new JComboBox(names);
556        return box;
557      }
558    
559    public static JSpinner mkSpinner()    public static JSpinner mkSpinner()
560    {    {
561      JSpinner spinner = new JSpinner();      JSpinner spinner = new JSpinner();
# Line 767  public class Demo Line 773  public class Demo
773                      mkColorChooser(),                      mkColorChooser(),
774                      panel);                      panel);
775    
776        new PopUpAction("ComboBox",
777                        mkComboBox(new String[] {"Stop",
778                                                 "Software",
779                                                 "Hoarders",
780                                                 "Support",
781                                                 "GNU!"}),
782                        panel);
783    
784      JButton exitDisposer = mkDisposerButton(frame);      JButton exitDisposer = mkDisposerButton(frame);
785      panel.add(exitDisposer);      panel.add(exitDisposer);
786    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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