Ignore:
Timestamp:
2010-11-26T16:38:45+01:00 (14 years ago)
Author:
postfix
Message:

ore work on harbor edtor

Location:
applications/editors/josm/plugins/smed/plugs/harbour/src
Files:
13 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/harbour/src/harbour/panels/PanelGeneral.java

    r24356 r24416  
    11package harbour.panels;
     2
     3import harbour.widgets.Sheltergram;
    24
    35import javax.swing.BorderFactory;
     
    68import java.awt.Color;
    79import java.awt.Dimension;
    8 import javax.swing.JButton;
    910import java.awt.Rectangle;
    1011import java.awt.Font;
     
    1213import javax.swing.JTextField;
    1314import javax.swing.JComboBox;
    14 import java.awt.Label;
    1515import javax.swing.JCheckBox;
    1616import java.awt.Cursor;
    17 import java.awt.GridBagLayout;
    18 import javax.swing.ImageIcon;
    1917
    2018public class PanelGeneral extends JPanel {
     
    4442        private JCheckBox desCheckBox = null;
    4543        private JCheckBox jCheckBox1 = null;
    46         private JLabel shelterLabel = null;
    4744        private JLabel tshelterLabel = null;
     45        private JPanel shelterPanel = null;
     46        private JLabel sizeLabel = null;
     47        private JLabel typeLabel = null;
    4848        public PanelGeneral() {
    4949                super();
     
    5858         */
    5959        private void initialize() {
     60        typeLabel = new JLabel();
     61        typeLabel.setBounds(new Rectangle(270, 2, 43, 20));
     62        typeLabel.setFont(new Font("Dialog", Font.PLAIN, 12));
     63        typeLabel.setText("Type");
     64        sizeLabel = new JLabel();
     65        sizeLabel.setBounds(new Rectangle(210, 2, 34, 20));
     66        sizeLabel.setFont(new Font("Dialog", Font.PLAIN, 12));
     67        sizeLabel.setText("Size");
    6068        tshelterLabel = new JLabel();
    61         tshelterLabel.setBounds(new Rectangle(252, 145, 50, 20));
     69        tshelterLabel.setBounds(new Rectangle(246, 144, 50, 20));
    6270        tshelterLabel.setText("Schutz");
    63         shelterLabel = new JLabel();
    64         shelterLabel.setBounds(new Rectangle(235, 167, 80, 80));
    65         shelterLabel.setIcon(new ImageIcon(getClass().getResource("/images/shelter.png")));
    6671        qLabel = new JLabel();
    6772        qLabel.setBounds(new Rectangle(50, 205, 85, 20));
     
    7681        chartLabel.setBounds(new Rectangle(210, 50, 35, 20));
    7782        chartLabel.setFont(new Font("Dialog", Font.PLAIN, 12));
    78         chartLabel.setText("Chart");
     83        chartLabel.setText("Karte");
    7984        pubLabel = new JLabel();
    8085        pubLabel.setBounds(new Rectangle(53, 50, 70, 20));
     
    8287        pubLabel.setText("Publication");
    8388        harborLabel = new JLabel();
    84         harborLabel.setBounds(new Rectangle(148, 2, 160, 20));
    85         harborLabel.setText("Harbor : Size       Type");
     89        harborLabel.setBounds(new Rectangle(148, 2, 55, 20));
     90        harborLabel.setText("Harbor:");
    8691        lonLabel = new JLabel();
    8792        lonLabel.setBounds(new Rectangle(100, 25, 23, 20));
     
    123128        this.add(getDesCheckBox(), null);
    124129        this.add(getJCheckBox1(), null);
    125         this.add(shelterLabel, null);
    126130        this.add(tshelterLabel, null);
     131        this.add(getShelterPanel(), null);
     132        this.add(sizeLabel, null);
     133        this.add(typeLabel, null);
    127134        }
    128135
     
    282289                if (jCheckBox2 == null) {
    283290                        jCheckBox2 = new JCheckBox();
    284                         jCheckBox2.setBounds(new Rectangle(125, 117, 110, 21));
     291                        jCheckBox2.setBounds(new Rectangle(125, 117, 70, 21));
    285292                        jCheckBox2.setFont(new Font("Dialog", Font.PLAIN, 12));
    286293                        jCheckBox2.setText("ratsam");
     
    301308                        tugCheckBox.setBounds(new Rectangle(5, 160, 121, 20));
    302309                        tugCheckBox.setFont(new Font("Dialog", Font.PLAIN, 12));
    303                         tugCheckBox.setText("Rettungsdienst");
     310                        tugCheckBox.setText("Bergungsschiff");
    304311                }
    305312                return tugCheckBox;
     
    374381        }
    375382
     383
     384
     385        /**
     386         * This method initializes shelterPanel
     387         *     
     388         * @return javax.swing.JPanel   
     389         */
     390        private JPanel getShelterPanel() {
     391                if (shelterPanel == null) {
     392                        shelterPanel = new Sheltergram();
     393                        shelterPanel.setBounds(new Rectangle(232, 170, 75, 75));
     394                }
     395                return shelterPanel;
     396        }
     397
    376398}
Note: See TracChangeset for help on using the changeset viewer.