/[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.1.2.2 by gnu_andrew, Fri Jan 14 10:24:03 2005 UTC revision 1.1.2.3 by gnu_andrew, Sun Mar 13 14:38:24 2005 UTC
# Line 626  public class Demo Line 626  public class Demo
626    {    {
627      final DefaultListModel mod = new DefaultListModel();      final DefaultListModel mod = new DefaultListModel();
628      final JList list1 = new JList(mod);      final JList list1 = new JList(mod);
629        list1.setLayoutOrientation(JList.VERTICAL_WRAP);
630        list1.setVisibleRowCount(4);
631      final JList list2 = new JList(mod);      final JList list2 = new JList(mod);
632        list2.setLayoutOrientation(JList.VERTICAL_WRAP);
633        list2.setVisibleRowCount(4);
634    
635      list2.setSelectionModel(list1.getSelectionModel());      list2.setSelectionModel(list1.getSelectionModel());
636      for (int i = 0; i < elts.length; ++i)      for (int i = 0; i < elts.length; ++i)
# Line 740  public class Demo Line 744  public class Demo
744                                                 "this",                                                 "this",
745                                                 "is",                                                 "is",
746                                                 "a",                                                 "a",
747                                                 "list"}),                                                 "list",
748                                                   "that",
749                                                   "wraps",
750                                                   "over"}),
751                      panel);                      panel);
752    
753      new PopUpAction("Scrollbar",      new PopUpAction("Scrollbar",

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

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