hide();
setVisible(false);
   void jbInit() throws Exception {      butFlip.setLabel(Messages.getString("Ruler.flip")); //$NON-NLS-1$      butFlip.addActionListener(new java.awt.event.ActionListener() {         public void actionPerformed(ActionEvent e) {            butFlip_actionPerformed(e);         }      });      panel1.setLayout(gridBagLayout1);      jLabel1.setText(Messages.getString("Ruler.Start")); //$NON-NLS-1$      tf_start.setEditable(false);      tf_start.setColumns(16);      jLabel2.setText(Messages.getString("Ruler.End")); //$NON-NLS-1$      tf_end.setEditable(false);      tf_end.setColumns(16);      jLabel3.setText(Messages.getString("Ruler.Distance")); //$NON-NLS-1$      tf_distance.setEditable(false);      tf_distance.setColumns(5);      jLabel4.setText(Messages.getString("Ruler.POV")+": "); //$NON-NLS-1$ //$NON-NLS-2$      jLabel4.setForeground(startColor);      tf_los1.setEditable(false);      tf_los1.setColumns(30);      jLabel5.setText(Messages.getString("Ruler.POV")); //$NON-NLS-1$      jLabel5.setForeground(endColor);      tf_los2.setEditable(false);      tf_los2.setColumns(30);      butClose.setLabel(Messages.getString("Ruler.Close")); //$NON-NLS-1$      butClose.addActionListener(new java.awt.event.ActionListener() {         public void actionPerformed(ActionEvent e) {            butClose_actionPerformed(e);         }      });      heightLabel1.setText(Messages.getString("Ruler.Height1")); //$NON-NLS-1$      heightLabel1.setForeground(startColor);      height1.setText("1"); //$NON-NLS-1$      height1.addKeyListener(new java.awt.event.KeyAdapter() {         public void keyReleased(KeyEvent e) {            height1_keyReleased(e);         }      });      height1.setColumns(5);      heightLabel2.setText(Messages.getString("Ruler.Height2")); //$NON-NLS-1$      heightLabel2.setForeground(endColor);      height2.setText("1"); //$NON-NLS-1$      height2.addKeyListener(new java.awt.event.KeyAdapter() {         public void keyReleased(KeyEvent e) {            height2_keyReleased(e);         }      });      height2.setColumns(5);      GridBagConstraints c = new GridBagConstraints();      c.gridheight = 1;      c.weightx = 0.0;      c.weighty = 0.0;      c.anchor = GridBagConstraints.CENTER;      c.fill = GridBagConstraints.NONE;      c.insets = new Insets(0, 5, 0, 0);      c.ipadx = 0;      c.ipady = 0;      c.gridx = 0;      c.gridy = 0;      c.gridwidth = 4;      c.insets = new Insets(0, 0, 0, 0);      gridBagLayout1.setConstraints(butFlip, c);      panel1.add(butFlip);      c.gridx = 0;      c.gridy = 1;      c.gridwidth = 1;      gridBagLayout1.setConstraints(heightLabel1, c);      panel1.add(heightLabel1);      c.gridx = 1;      c.gridy = 1;      c.gridwidth = 1;      gridBagLayout1.setConstraints(height1, c);      panel1.add(height1);      c.gridx = 2;      c.gridy = 1;      c.gridwidth = 1;      gridBagLayout1.setConstraints(heightLabel2, c);      panel1.add(heightLabel2);      c.gridx = 3;      c.gridy = 1;      c.gridwidth = 1;      gridBagLayout1.setConstraints(height2, c);      panel1.add(height2);      c.gridx = 0;      c.gridy = 2;      c.gridwidth = 1;      gridBagLayout1.setConstraints(jLabel1, c);      panel1.add(jLabel1);      c.gridx = 1;      c.gridy = 2;      c.gridwidth = 3;      gridBagLayout1.setConstraints(tf_start, c);      panel1.add(tf_start);      c.gridx = 0;      c.gridy = 3;      c.gridwidth = 1;      gridBagLayout1.setConstraints(jLabel2, c);      panel1.add(jLabel2);      c.gridx = 1;      c.gridy = 3;      c.gridwidth = 3;      gridBagLayout1.setConstraints(tf_end, c);      panel1.add(tf_end);      c.gridx = 0;      c.gridy = 4;      c.gridwidth = 1;      gridBagLayout1.setConstraints(jLabel3, c);      panel1.add(jLabel3);      c.gridx = 1;      c.gridy = 4;      c.gridwidth = 3;      gridBagLayout1.setConstraints(tf_distance, c);      panel1.add(tf_distance);      c.gridx = 0;      c.gridy = 5;      c.gridwidth = 1;      gridBagLayout1.setConstraints(jLabel4, c);      panel1.add(jLabel4);      c.gridx = 1;      c.gridy = 5;      c.gridwidth = 3;      gridBagLayout1.setConstraints(tf_los1, c);      panel1.add(tf_los1);      c.gridx = 0;      c.gridy = 6;      c.gridwidth = 1;      gridBagLayout1.setConstraints(jLabel5, c);      panel1.add(jLabel5);      c.gridx = 1;      c.gridy = 6;      c.gridwidth = 3;      gridBagLayout1.setConstraints(tf_los2, c);      panel1.add(tf_los2);      c.gridx = 0;      c.gridy = 7;      c.gridwidth = 5;      gridBagLayout1.setConstraints(butClose, c);      panel1.add(butClose);      validate();      hide();   }