- Timestamp:
- 07/10/13 22:41:02 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/main/java/com/framsticks/gui/ModifiablePanel.java
r98 r99 20 20 * Pane to which components will be added. 21 21 */ 22 protected JPanel contentPanel;23 22 24 final protected JLabel label; 25 final protected JButton applyButton; 23 protected final JLabel label; 24 protected final JButton applyButton; 25 protected final JPanel centerPanel; 26 27 protected Component contentComponent; 26 28 27 29 public ModifiablePanel(Panel.Parameters parameters) { … … 30 32 31 33 32 contentPanel = new JPanel();33 contentPanel.setLayout(new BoxLayout(contentPanel, BoxLayout.PAGE_AXIS));34 JScrollPane scroll = new JScrollPane(contentPanel);35 //scroll.setBorder(BorderFactory.createEtchedBorder());36 34 37 35 JPanel pageEndPanel = new JPanel(); … … 53 51 54 52 label = new JLabel(); 55 JPanelcenterPanel = new JPanel();53 centerPanel = new JPanel(); 56 54 centerPanel.setLayout(new BorderLayout()); 57 55 centerPanel.add(Box.createHorizontalStrut(10), BorderLayout.LINE_START); 58 56 centerPanel.add(Box.createHorizontalStrut(10), BorderLayout.LINE_END); 59 57 centerPanel.add(label, BorderLayout.PAGE_START); 60 centerPanel.add(scroll, BorderLayout.CENTER); 58 59 61 60 centerPanel.add(pageEndPanel, BorderLayout.PAGE_END); 62 61 … … 68 67 protected abstract void applyChanges(); 69 68 69 protected void setupContentComponent(Component contentComponent) { 70 this.contentComponent = contentComponent; 71 centerPanel.add(contentComponent, BorderLayout.CENTER); 72 } 73 70 74 }
Note: See TracChangeset
for help on using the changeset viewer.