Changeset 23272 in osm


Ignore:
Timestamp:
2010-09-19T17:15:08+02:00 (14 years ago)
Author:
postfix
Message:

added JCheckBoxList to smed

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  
    1818import java.awt.GridBagLayout;
    1919import java.awt.GridBagConstraints;
     20import javax.swing.JCheckBox;
     21
     22import smed.list.JCheckBoxList;
    2023public class HideAction {
    2124
     
    2730        private JPanel jContentPane = null;
    2831        private JButton okButton = null;
    29         private JList hideList = null;
     32        private JCheckBoxList hideList = null;
     33        private JCheckBox jCheckBox = null;
    3034        /**
    3135         * This method initializes hideDialog   
     
    3842                        hideDialog.setResizable(false);
    3943                        hideDialog.setSize(new Dimension(360, 480));
    40                         hideDialog.setModal(false);
     44                        hideDialog.setModal(true);
    4145                        hideDialog.setTitle("Hide Tab");
    4246                        hideDialog.setContentPane(getJContentPane());
     
    8286         * @return javax.swing.JList   
    8387         */
    84         private JList getHideList() {
     88        private JCheckBoxList getHideList() {
    8589                if (hideList == null) {
    86                         hideList = new JList();
     90                        hideList = new JCheckBoxList();
    8791                        hideList.setBounds(new Rectangle(20, 15, 315, 370));
    8892                        hideList.setBorder(LineBorder.createBlackLineBorder());
    89                         JCheckBoxMenuItem item = new JCheckBoxMenuItem();
    90                 }
     93                        hideList.add(getJCheckBox());                   
     94                        }
    9195                return hideList;
    9296        }
     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
    93110}
Note: See TracChangeset for help on using the changeset viewer.