Changeset 23272 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-09-19T17:15:08+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed/src/smed
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/src/smed/menu/file/HideAction.java
r23271 r23272 18 18 import java.awt.GridBagLayout; 19 19 import java.awt.GridBagConstraints; 20 import javax.swing.JCheckBox; 21 22 import smed.list.JCheckBoxList; 20 23 public class HideAction { 21 24 … … 27 30 private JPanel jContentPane = null; 28 31 private JButton okButton = null; 29 private JList hideList = null; 32 private JCheckBoxList hideList = null; 33 private JCheckBox jCheckBox = null; 30 34 /** 31 35 * This method initializes hideDialog … … 38 42 hideDialog.setResizable(false); 39 43 hideDialog.setSize(new Dimension(360, 480)); 40 hideDialog.setModal( false);44 hideDialog.setModal(true); 41 45 hideDialog.setTitle("Hide Tab"); 42 46 hideDialog.setContentPane(getJContentPane()); … … 82 86 * @return javax.swing.JList 83 87 */ 84 private J List getHideList() {88 private JCheckBoxList getHideList() { 85 89 if (hideList == null) { 86 hideList = new J List();90 hideList = new JCheckBoxList(); 87 91 hideList.setBounds(new Rectangle(20, 15, 315, 370)); 88 92 hideList.setBorder(LineBorder.createBlackLineBorder()); 89 JCheckBoxMenuItem item = new JCheckBoxMenuItem();90 }93 hideList.add(getJCheckBox()); 94 } 91 95 return hideList; 92 96 } 97 /** 98 * This method initializes jCheckBox 99 * 100 * @return javax.swing.JCheckBox 101 */ 102 private JCheckBox getJCheckBox() { 103 if (jCheckBox == null) { 104 jCheckBox = new JCheckBox(); 105 jCheckBox.setBounds(new Rectangle(10, 10, 100, 20)); 106 } 107 return jCheckBox; 108 } 109 93 110 }
Note:
See TracChangeset
for help on using the changeset viewer.