View Javadoc

1   package org.catacomb.druid.gui.edit;
2   
3   import org.catacomb.druid.swing.DScrollPane;
4   
5   
6   public class DruScrollingListPanel extends DruListPanel {
7   
8       DScrollPane dsp;
9   
10  
11      public DruScrollingListPanel() {
12          this(10);
13      }
14  
15      public DruScrollingListPanel(int n) {
16          super(n);
17  
18  
19          dsp = new DScrollPane();
20          dsp.setVerticalScrollbarAsNeeded();
21  
22          removeDComponent(dList);
23          dsp.setViewportView(dList);
24          addDComponent(dsp);
25      }
26  
27      public void setToggleAction() {
28          dList.setToggleAction();
29      }
30  
31  }