Changeset 24523 in osm for applications


Ignore:
Timestamp:
2010-12-02T17:43:28+01:00 (14 years ago)
Author:
malcolmh
Message:

save

Location:
applications/editors/josm/plugins/smed/plugs/oseam/src
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/dialogs/OSeaMAction.java

    r24513 r24523  
    4242
    4343        private JPanel oseamPanel = null;
     44        private JButton chanButton = null;
    4445       
    4546        public OSeaMAction() {
     
    6364                        oseamPanel.setLayout(null);
    6465                        oseamPanel.setSize(new Dimension(400, 360));
     66                        oseamPanel.add(getChanButton(),  null);
    6567                }
    6668                return oseamPanel;
    6769        }
    6870
     71        private JButton getChanButton() {
     72                if (chanButton == null) {
     73                        chanButton = new JButton();
     74                        chanButton.setBounds(new Rectangle(340, 56, 50, 50));
     75                        chanButton.setText("");
     76                        chanButton.setIcon(new ImageIcon(getClass().getResource("/images/Chan.png")));
     77                        chanButton.setToolTipText("Channel Marks");
     78                        chanButton.addActionListener(new java.awt.event.ActionListener() {
     79                                public void actionPerformed(java.awt.event.ActionEvent e) {
     80/*                                      panelLimits.setVisible(false);
     81                                        panelServices.setVisible(false);
     82                                        panelEnv.setVisible(false);
     83                                        panelRelations.setVisible(false);
     84                                        panelGeneral.setVisible(true);
     85*/                              }
     86                        });
     87                }
     88                return chanButton;
     89        }
     90
    6991}
Note: See TracChangeset for help on using the changeset viewer.