contentPane.add(blinkPanel);
   public void initPanel() throws Exception  {      setLayout(new BorderLayout());      contentPane = new JPanel();      contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS));      add(contentPane,BorderLayout.NORTH);      // define cursor size panel      JPanel crp = new JPanel();      crp.setBorder(BorderFactory.createTitledBorder(LangTool.getString("sa.crsSize")));      cFull = new JRadioButton(LangTool.getString("sa.cFull"));      cHalf = new JRadioButton(LangTool.getString("sa.cHalf"));      cLine = new JRadioButton(LangTool.getString("sa.cLine"));      // Group the radio buttons.      ButtonGroup cGroup = new ButtonGroup();      cGroup.add(cFull);      cGroup.add(cHalf);      cGroup.add(cLine);      int cursorSize = 0;      if (getStringProperty("cursorSize").equals("Full"))         cursorSize = 2;      if (getStringProperty("cursorSize").equals("Half"))         cursorSize = 1;      switch (cursorSize) {         case 0:            cLine.setSelected(true);            break;         case 1:            cHalf.setSelected(true);            break;         case 2:            cFull.setSelected(true);            break;      }      crp.add(cFull);      crp.add(cHalf);      crp.add(cLine);      // define cursor ruler panel      JPanel chp = new JPanel();      chp.setBorder(BorderFactory.createTitledBorder(LangTool.getString("sa.crossHair")));      chNone = new JRadioButton(LangTool.getString("sa.chNone"));      chHorz = new JRadioButton(LangTool.getString("sa.chHorz"));      chVert = new JRadioButton(LangTool.getString("sa.chVert"));      chCross = new JRadioButton(LangTool.getString("sa.chCross"));      // Group the radio buttons.      ButtonGroup chGroup = new ButtonGroup();      chGroup.add(chNone);      chGroup.add(chHorz);      chGroup.add(chVert);      chGroup.add(chCross);      int crossHair = 0;      if (getStringProperty("crossHair").equals("Horz"))         crossHair = 1;      if (getStringProperty("crossHair").equals("Vert"))         crossHair = 2;      if (getStringProperty("crossHair").equals("Both"))         crossHair = 3;      switch (crossHair) {         case 0:            chNone.setSelected(true);            break;         case 1:            chHorz.setSelected(true);            break;         case 2:            chVert.setSelected(true);            break;         case 3:            chCross.setSelected(true);            break;      }      chp.add(chNone);      chp.add(chHorz);      chp.add(chVert);      chp.add(chCross);      // define double click as enter      JPanel rulerFPanel = new JPanel();      rulerFPanel.setBorder(BorderFactory.createTitledBorder(""));      rulerFixed = new JCheckBox(LangTool.getString("sa.rulerFixed"));      rulerFixed.setSelected(true);      if (getStringProperty("rulerFixed").equals("Yes"))         rulerFixed.setSelected(false);      rulerFPanel.add(rulerFixed);      // define bottom offset panel for cursor      JPanel bottOffPanel = new JPanel();      bottOffPanel.setBorder(BorderFactory.createTitledBorder(                                    LangTool.getString("sa.curBottOffset")));      cursorBottOffset = new JTextField(5);      try {         int i = Integer.parseInt(getStringProperty("cursorBottOffset","0"));         cursorBottOffset.setText(Integer.toString(i));      }      catch (NumberFormatException ne) {         cursorBottOffset.setText("0");      }      bottOffPanel.add(cursorBottOffset);      contentPane.add(crp);      contentPane.add(chp);      contentPane.add(rulerFPanel);      contentPane.add(bottOffPanel);   }