public DelegationPanel() {
   final BoxLayout boxLayout = new BoxLayout(this, BoxLayout.X_AXIS);
   setLayout(boxLayout);
   add(new JLabel(RefactoringBundle.message("delegation.panel.method.calls.label")));
   myRbModifyCalls = new JRadioButton();
   myRbModifyCalls.setText(RefactoringBundle.message("delegation.panel.modify.radio"));
   add(myRbModifyCalls);
   myRbGenerateDelegate = new JRadioButton();
   myRbGenerateDelegate.setText(
       RefactoringBundle.message("delegation.panel.delegate.via.overloading.method"));
   add(myRbGenerateDelegate);
   myRbModifyCalls.setSelected(true);
   final ButtonGroup bg = new ButtonGroup();
   bg.add(myRbModifyCalls);
   bg.add(myRbGenerateDelegate);
   add(Box.createHorizontalGlue());
   myRbModifyCalls.addItemListener(
       new ItemListener() {
         public void itemStateChanged(ItemEvent e) {
           stateModified();
         }
       });
   myRbGenerateDelegate.addItemListener(
       new ItemListener() {
         public void itemStateChanged(ItemEvent e) {
           stateModified();
         }
       });
 }
Example #2
0
 /**
  * Adds the connection speed options to the display.
  *
  * @param index The default index.
  * @param comp The component to add to the display.
  * @return See above.
  */
 private JPanel buildConnectionSpeed(int index, JComponent comp) {
   JPanel p = new JPanel();
   p.setBorder(BorderFactory.createTitledBorder("Connection Speed"));
   buttonsGroup = new ButtonGroup();
   JRadioButton button = new JRadioButton();
   button.setText("LAN");
   button.setActionCommand("" + HIGH_SPEED);
   button.addActionListener(this);
   button.setSelected(index == LoginCredentials.HIGH);
   buttonsGroup.add(button);
   p.add(button);
   button = new JRadioButton();
   button.setText("High (Broadband)");
   button.setActionCommand("" + MEDIUM_SPEED);
   button.setSelected(index == LoginCredentials.MEDIUM);
   button.addActionListener(this);
   buttonsGroup.add(button);
   p.add(button);
   button = new JRadioButton();
   button.setText("Low (Dial-up)");
   button.setActionCommand("" + LOW_SPEED);
   button.setSelected(index == LoginCredentials.LOW);
   button.addActionListener(this);
   buttonsGroup.add(button);
   p.add(button);
   if (comp == null) return p;
   JPanel content = new JPanel();
   content.setLayout(new BoxLayout(content, BoxLayout.Y_AXIS));
   content.add(comp);
   p = UIUtilities.buildComponentPanel(p);
   content.add(p);
   return content;
 }
  public void updateDisplayStrings() {

    String lastUsedSeedText =
        (det.getLastUsedSeed() != SeedDetermination.NULL_SEED)
            ? " (" + String.valueOf(det.getLastUsedSeed()) + ")"
            : "";

    fromLastRun.setText("From last run" + lastUsedSeedText);
    fromLastRun.setEnabled(det.foundLastUsedSeed());
    fromLastRun.setSelected(det.foundLastUsedSeed());

    newSeed.setText("New seed (" + det.getNewSeed() + ")");

    ConfigFile f = det.getConfigFile();
    if (f == null) {
      fromConfig.setText("From config");
      fromConfig.setEnabled(false);
    } else {
      String s = f.getSeedInConfig();
      fromConfig.setEnabled(s != null);
      fromConfig.setText("From config (" + s + ")");
    }

    newSeed.setSelected(!fromConfig.isEnabled() && !det.foundLastUsedSeed());
    fromConfig.setSelected(!det.foundLastUsedSeed && fromConfig.isEnabled());
    customSeed.setSelected(false);

    if (det.foundLastUsedSeed()) {
      det.choose(SeedDeterminationChoice.fromLastRun);
    } else if (fromConfig.isEnabled()) {
      det.choose(SeedDeterminationChoice.fromConfig);
    } else {
      det.choose(SeedDeterminationChoice.newSeed);
    }
  }
Example #4
0
 // Display question and answer choices
 public void readQuestionAnswer(int questionID) {
   lblmess.setText("  " + quizPossibleAnswers[questionID][0]);
   choice1.setText(quizPossibleAnswers[questionID][1]);
   choice2.setText(quizPossibleAnswers[questionID][2]);
   choice3.setText(quizPossibleAnswers[questionID][3]);
   choice4.setText(quizPossibleAnswers[questionID][4]);
   choice1.setSelected(true);
 }
  private void jbInit() throws Exception {
    this.setLayout(null);
    lblComparacion.setText("Ver comparación IBI-PMH");
    lblComparacion.setBounds(new Rectangle(135, 20, 375, 20));
    lblImagen.setBounds(new Rectangle(15, 20, 110, 490));

    lblImagen.setIcon(IconLoader.icon("catastro.png"));
    lblImagen.setBorder(BorderFactory.createLineBorder(Color.black, 1));

    rdbNif.setText("NIF Titular:");
    rdbNif.setBounds(new Rectangle(135, 100, 90, 20));
    rdbReferencia.setText("Referencia Catastral:");
    rdbReferencia.setBounds(new Rectangle(135, 130, 140, 25));

    ButtonGroup grupoOpciones = new ButtonGroup();
    lblTermino.setText("Introduzca el término de búsqueda:");
    lblTermino.setBounds(new Rectangle(135, 60, 275, 20));
    txtNif.setBounds(new Rectangle(225, 100, 100, 20));
    lblGuion.setText("-");
    lblGuion.setBounds(new Rectangle(325, 100, 10, 20));
    txtCaracterNif.setBounds(new Rectangle(330, 100, 20, 20));
    txtReferencia.setBounds(new Rectangle(290, 130, 170, 20));
    grupoOpciones.add(rdbNif);
    grupoOpciones.add(rdbReferencia);
    rdbNif.setSelected(true);
    btnFinalizar.setText("Finalizar");
    btnFinalizar.setBounds(new Rectangle(645, 530, 90, 25));
    /*btnSiguiente.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        btnSiguiente_actionPerformed(e);
      }
    });*/
    /* btnAnterior.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        btnAnterior_actionPerformed(e);
      }
    });*/
    this.setSize(750, 600);
    this.add(txtReferencia, null);
    this.add(txtCaracterNif, null);
    this.add(lblGuion, null);
    this.add(txtNif, null);
    this.add(lblTermino, null);
    this.add(btnFinalizar, null);
    this.add(rdbReferencia, null);
    this.add(rdbNif, null);
    this.add(lblImagen, null);
    this.add(lblComparacion, null);
  }
Example #6
0
  public void loadGUIText() {
    setTitle(localeService.getTranslatedString("TotalViolations"));
    tabbedPane.addTab(localeService.getTranslatedString("FilterViolations"), filterViolationPanel);
    addPath.setText(localeService.getTranslatedString("Add"));
    removePath.setText(localeService.getTranslatedString("Remove"));
    tabbedPane.addTab(localeService.getTranslatedString("FilterPaths"), pathFilterPanel);
    save.setText(localeService.getTranslatedString("Save"));
    cancel.setText(localeService.getTranslatedString("Cancel"));
    showFilteredValues.setText(localeService.getTranslatedString("ShowSelectedValues"));
    hideFilteredValues.setText(localeService.getTranslatedString("HideSelectedValues"));

    loadModels();
  }
  protected JComponent createCenterPanel() {
    JPanel optionsPanel = new JPanel();
    optionsPanel.setBorder(new EmptyBorder(10, 0, 0, 0));
    optionsPanel.setLayout(new BoxLayout(optionsPanel, BoxLayout.Y_AXIS));

    myRbInlineAll = new JRadioButton();
    myRbInlineAll.setText(getInlineAllText());
    myRbInlineAll.setSelected(true);
    myRbInlineThisOnly = new JRadioButton();
    myRbInlineThisOnly.setText(getInlineThisText());

    optionsPanel.add(myRbInlineAll);
    optionsPanel.add(myRbInlineThisOnly);
    ButtonGroup bg = new ButtonGroup();
    bg.add(myRbInlineAll);
    bg.add(myRbInlineThisOnly);
    new RadioUpDownListener(myRbInlineAll, myRbInlineThisOnly);

    myRbInlineThisOnly.setEnabled(myInvokedOnReference);
    final boolean writable = myElement.isWritable();
    myRbInlineAll.setEnabled(writable);
    if (myInvokedOnReference) {
      if (canInlineThisOnly()) {
        myRbInlineAll.setSelected(false);
        myRbInlineAll.setEnabled(false);
        myRbInlineThisOnly.setSelected(true);
      } else {
        if (writable) {
          final boolean inlineThis = isInlineThis();
          myRbInlineThisOnly.setSelected(inlineThis);
          myRbInlineAll.setSelected(!inlineThis);
        } else {
          myRbInlineAll.setSelected(false);
          myRbInlineThisOnly.setSelected(true);
        }
      }
    } else {
      myRbInlineAll.setSelected(true);
      myRbInlineThisOnly.setSelected(false);
    }

    getPreviewAction().setEnabled(myRbInlineAll.isSelected());
    myRbInlineAll.addItemListener(
        new ItemListener() {
          public void itemStateChanged(ItemEvent e) {
            boolean enabled = myRbInlineAll.isSelected();
            getPreviewAction().setEnabled(enabled);
          }
        });
    return optionsPanel;
  }
  protected JPanel createReplaceFieldsWithGettersPanel() {
    JPanel radioButtonPanel = new JPanel(new GridBagLayout());

    GridBagConstraints gbConstraints = new GridBagConstraints();
    gbConstraints.insets = new Insets(4, 8, 4, 8);
    gbConstraints.weighty = 1;
    gbConstraints.weightx = 1;
    gbConstraints.gridy = 0;
    gbConstraints.gridwidth = GridBagConstraints.REMAINDER;
    gbConstraints.fill = GridBagConstraints.BOTH;
    gbConstraints.anchor = GridBagConstraints.WEST;
    radioButtonPanel.add(
        new JLabel(
            RefactoringBundle.message("replace.fields.used.in.expressions.with.their.getters")),
        gbConstraints);

    myReplaceFieldsWithGettersNoneRadio = new JRadioButton();
    myReplaceFieldsWithGettersNoneRadio.setText(RefactoringBundle.message("do.not.replace"));

    myReplaceFieldsWithGettersInaccessibleRadio = new JRadioButton();
    myReplaceFieldsWithGettersInaccessibleRadio.setText(
        RefactoringBundle.message("replace.fields.inaccessible.in.usage.context"));

    myReplaceFieldsWithGettersAllRadio = new JRadioButton();
    myReplaceFieldsWithGettersAllRadio.setText(RefactoringBundle.message("replace.all.fields"));

    gbConstraints.gridy++;
    radioButtonPanel.add(myReplaceFieldsWithGettersNoneRadio, gbConstraints);
    gbConstraints.gridy++;
    radioButtonPanel.add(myReplaceFieldsWithGettersInaccessibleRadio, gbConstraints);
    gbConstraints.gridy++;
    radioButtonPanel.add(myReplaceFieldsWithGettersAllRadio, gbConstraints);

    final int currentSetting =
        JavaRefactoringSettings.getInstance().INTRODUCE_PARAMETER_REPLACE_FIELDS_WITH_GETTERS;

    myReplaceFieldsWithGettersButtonGroup.add(myReplaceFieldsWithGettersNoneRadio);
    myReplaceFieldsWithGettersButtonGroup.add(myReplaceFieldsWithGettersInaccessibleRadio);
    myReplaceFieldsWithGettersButtonGroup.add(myReplaceFieldsWithGettersAllRadio);

    if (currentSetting == IntroduceParameterRefactoring.REPLACE_FIELDS_WITH_GETTERS_ALL) {
      myReplaceFieldsWithGettersAllRadio.setSelected(true);
    } else if (currentSetting
        == IntroduceParameterRefactoring.REPLACE_FIELDS_WITH_GETTERS_INACCESSIBLE) {
      myReplaceFieldsWithGettersInaccessibleRadio.setSelected(true);
    } else if (currentSetting == IntroduceParameterRefactoring.REPLACE_FIELDS_WITH_GETTERS_NONE) {
      myReplaceFieldsWithGettersNoneRadio.setSelected(true);
    }

    return radioButtonPanel;
  }
Example #9
0
  public void setLabels() {

    // titled borders
    classesPanel.setBorder(BorderFactory.createTitledBorder(loc.getMenu("Classes")));
    showPanel.setBorder(BorderFactory.createTitledBorder(loc.getMenu("Show")));
    freqPanel.setBorder(BorderFactory.createTitledBorder(loc.getMenu("FrequencyType")));
    dimPanel.setBorder(BorderFactory.createTitledBorder(loc.getPlain("Dimensions")));
    coordPanel.setBorder(BorderFactory.createTitledBorder(loc.getMenu("Coordinate Mode")));

    // histogram options
    ckManual.setText(loc.getMenu("SetClasssesManually"));
    lblFreqType.setText(loc.getMenu("FrequencyType") + ":");

    rbFreq.setText(loc.getMenu("Count"));
    rbNormalized.setText(loc.getMenu("Normalized"));
    rbRelative.setText(loc.getMenu("Relative"));

    ckCumulative.setText(loc.getMenu("Cumulative"));
    lblOverlay.setText(loc.getMenu("Overlay"));
    ckOverlayNormal.setText(loc.getMenu("NormalCurve"));
    ckOverlayPolygon.setText(loc.getMenu("FrequencyPolygon"));
    ckShowFrequencyTable.setText(loc.getMenu("FrequencyTable"));
    ckShowHistogram.setText(loc.getMenu("Histogram"));

    lblClassRule.setText(loc.getMenu("ClassRule") + ":");
    rbRightRule.setText(loc.getMenu("RightClassRule"));
    rbLeftRule.setText(loc.getMenu("LeftClassRule"));

    // bar chart
    lblBarWidth.setText(loc.getMenu("Width"));
    ckAutoBarWidth.setText(loc.getMenu("AutoDimension"));

    // graph options
    ckAutoWindow.setText(loc.getMenu("AutoDimension"));
    ckShowGrid.setText(loc.getMenu("ShowGrid"));
    lblXMin.setText(loc.getMenu("xmin") + ":");
    lblXMax.setText(loc.getMenu("xmax") + ":");
    lblYMin.setText(loc.getMenu("ymin") + ":");
    lblYMax.setText(loc.getMenu("ymax") + ":");

    lblXInterval.setText(loc.getMenu("xstep") + ":");
    lblYInterval.setText(loc.getMenu("ystep") + ":");

    rbStandToStand.setText(loc.getMenu("Standard To Standard"));
    rbLogToStand.setText(loc.getMenu("Logarithmic To Standard"));
    rbStandToLog.setText(loc.getMenu("Standard To Logarithmic"));
    rbLogToLog.setText(loc.getMenu("Logarithmic To Logarithmic"));

    // scatterplot options
    ckShowLines.setText(loc.getMenu("LineGraph"));

    // boxplot options
    ckShowOutliers.setText(loc.getMenu("ShowOutliers"));

    repaint();
  }
  @Override
  public void doTranslation() {
    ((TitledBorder) contentSourcePanel.getBorder())
        .setTitle(Internal.I18N.getString("pref.kmlexport.balloon.contentSource.border"));

    includeDescription.setText(
        Internal.I18N.getString("pref.kmlexport.balloon.label.includeDescription"));
    genAttribRadioButton.setText(Internal.I18N.getString("pref.kmlexport.balloon.label.genAttrib"));
    fileRadioButton.setText(Internal.I18N.getString("pref.kmlexport.balloon.label.file"));
    genAttribAndFileRadioButton.setText(
        Internal.I18N.getString("pref.kmlexport.balloon.label.genAttribAndFile"));
    browseButton.setText(Internal.I18N.getString("common.button.browse"));
    contentInSeparateFile.setText(
        Internal.I18N.getString("pref.kmlexport.balloon.label.contentInSeparateFile"));
    warningLabel.setText(Internal.I18N.getString("pref.kmlexport.balloon.label.warningLabel"));
  }
 /**
  * This method initializes jRadioButtonSegmentor
  *
  * @return javax.swing.JRadioButton
  */
 private JRadioButton getJRadioButtonSegmentor() {
   if (jRadioButtonSegmentor == null) {
     jRadioButtonSegmentor = new JRadioButton();
     jRadioButtonSegmentor.setText("Segmentation Test"); // Generated
   }
   return jRadioButtonSegmentor;
 }
  /*
   * Update radio button names in the same order as the table
   */
  private void updateControlPanel() {
    schedule.removeAll();
    noneButton.setName(""); // Name holds schedule id for the selected radio button
    noneButton.setSelected(true);
    commentTextArea.setText(""); // no text for the noneButton
    enableButtons(false);
    schedule.add(noneButton);
    schGroup.add(noneButton);

    for (int i = trainsScheduleModel.getFixedColumn();
        i < trainsScheduleModel.getColumnCount();
        i++) {
      log.debug("Column name: {}", trainsScheduleTable.getColumnName(i));
      TrainSchedule ts =
          trainScheduleManager.getScheduleByName(trainsScheduleTable.getColumnName(i));
      if (ts != null) {
        JRadioButton b = new JRadioButton();
        b.setText(ts.getName());
        b.setName(ts.getId());
        schedule.add(b);
        schGroup.add(b);
        addRadioButtonAction(b);
        if (b.getName().equals(trainManager.getTrainScheduleActiveId())) {
          b.setSelected(true);
          enableButtons(true);
          // update comment field
          commentTextArea.setText(ts.getComment());
        }
      }
    }
    schedule.revalidate();
  }
 /**
  * This method initializes jRadioButtonRecognizier
  *
  * @return javax.swing.JRadioButton
  */
 private JRadioButton getJRadioButtonRecognizier() {
   if (jRadioButtonRecognizier == null) {
     jRadioButtonRecognizier = new JRadioButton();
     jRadioButtonRecognizier.setText("Recognizier Test   "); // Generated
   }
   return jRadioButtonRecognizier;
 }
 /**
  * This method initializes jRadioButtonSwarmAlgorithmTest
  *
  * @return javax.swing.JRadioButton
  */
 private JRadioButton getJRadioButtonSwarmAlgorithmTest() {
   if (jRadioButtonSwarmAlgorithmTest == null) {
     jRadioButtonSwarmAlgorithmTest = new JRadioButton();
     jRadioButtonSwarmAlgorithmTest.setText("Swarm Alg. Test  "); // Generated
   }
   return jRadioButtonSwarmAlgorithmTest;
 }
Example #15
0
 /**
  * Inicializa el radioButton 'Name'
  *
  * @return jRadioButton
  */
 public JRadioButton getNameRadioButton() {
   if (nameRadioButton == null) {
     nameRadioButton = new JRadioButton();
     nameRadioButton.setText(PluginServices.getText(this, "por_nombre"));
     nameRadioButton.addActionListener(this);
   }
   return nameRadioButton;
 }
Example #16
0
 private JRadioButton getSmoothRB() {
   if (SmoothRB == null) {
     SmoothRB = new JRadioButton();
     SmoothRB.setText("Smooth");
     SmoothRB.addItemListener(this);
   }
   return SmoothRB;
 }
Example #17
0
 private JRadioButton getRawAndSmoothRB() {
   if (RawAndSmoothRB == null) {
     RawAndSmoothRB = new JRadioButton();
     RawAndSmoothRB.setText("Raw & Smooth");
     RawAndSmoothRB.addItemListener(this);
   }
   return RawAndSmoothRB;
 }
Example #18
0
 private JRadioButton getMiscTimeRange() {
   if (miscTimeRange == null) {
     miscTimeRange = new JRadioButton();
     miscTimeRange.setText("Eigener Zeitraum");
     getTimeRangeGroup().add(miscTimeRange);
   }
   return miscTimeRange;
 }
Example #19
0
 private JRadioButton getWinterbreakBtn() {
   if (winterbreakBtn == null) {
     winterbreakBtn = new JRadioButton();
     winterbreakBtn.setText("Weihnachtsferien");
     getTimeRangeGroup().add(winterbreakBtn);
   }
   return winterbreakBtn;
 }
Example #20
0
 private JRadioButton getEasterbreak() {
   if (easterbreak == null) {
     easterbreak = new JRadioButton();
     easterbreak.setText("Osterferien");
     getTimeRangeGroup().add(easterbreak);
   }
   return easterbreak;
 }
Example #21
0
 private JRadioButton getRawRB() {
   if (RawRB == null) {
     RawRB = new JRadioButton();
     RawRB.setText("Raw");
     RawRB.setSelected(true);
     RawRB.addItemListener(this);
   }
   return RawRB;
 }
Example #22
0
 /**
  * Inicializa el radioButton 'Codigo'
  *
  * @return jRadioButton
  */
 public JRadioButton getCodeRadioButton() {
   if (codeRadioButton == null) {
     codeRadioButton = new JRadioButton();
     codeRadioButton.setText(PluginServices.getText(this, "por_codigo"));
     codeRadioButton.setSelected(true);
     codeRadioButton.addActionListener(this);
   }
   return codeRadioButton;
 }
 /**
  * This method initializes useStdSrvBtt
  *
  * @return javax.swing.JRadioButton
  */
 private JRadioButton getUseStdSrvBtt() {
   if (useStdSrvBtt == null) {
     useStdSrvBtt = new JRadioButton();
     useStdSrvBtt.setText("Use Standalone server");
     useStdSrvBtt.addChangeListener(bttStateChange);
     bttGroup.add(useStdSrvBtt);
   }
   return useStdSrvBtt;
 }
Example #24
0
 public JRadioButton getLiteralButton() {
   if (literalButton == null) {
     literalButton = new JRadioButton();
     literalButton.setText("Literal");
     literalButton.setMnemonic('L');
     literalButton.setSelected(true);
     literalButton.addActionListener(this);
   }
   return literalButton;
 }
Example #25
0
 public JRadioButton getWildCardsButton() {
   if (wildCardsButton == null) {
     wildCardsButton = new JRadioButton();
     wildCardsButton.setText("Wild Cards");
     wildCardsButton.setMnemonic('i');
     wildCardsButton.setDisplayedMnemonicIndex(1);
     wildCardsButton.addActionListener(this);
   }
   return wildCardsButton;
 }
Example #26
0
 public JRadioButton getRegexButton() {
   if (regexButton == null) {
     regexButton = new JRadioButton();
     regexButton.setText("Regular Expressions");
     regexButton.setMnemonic('x');
     regexButton.setDisplayedMnemonicIndex(9);
     regexButton.addActionListener(this);
   }
   return regexButton;
 }
 /**
  * This method initializes useEmdSrvBtt
  *
  * @return javax.swing.JRadioButton
  */
 private JRadioButton getUseEmdSrvBtt() {
   if (useEmdSrvBtt == null) {
     useEmdSrvBtt = new JRadioButton();
     useEmdSrvBtt.setSelected(true);
     useEmdSrvBtt.setText("Use Embedded server");
     useEmdSrvBtt.addChangeListener(bttStateChange);
     bttGroup.add(useEmdSrvBtt);
   }
   return useEmdSrvBtt;
 }
Example #28
0
  private JRadioButton getRs422RB() {
    if (rs422RB == null) {
      rs422RB = new JRadioButton();
      rs422RB.setText(getVcrConnectionPanelRs422().getVcrPanelName());
      rs422RB.addActionListener(getRs422RBListener());
      rs422RB.setSelected(true);
    }

    return rs422RB;
  }
Example #29
0
  public void setLabels() {

    // titled borders
    classesPanel.setBorder(BorderFactory.createTitledBorder(app.getMenu("Classes")));
    showPanel.setBorder(BorderFactory.createTitledBorder(app.getMenu("Show")));
    freqPanel.setBorder(BorderFactory.createTitledBorder(app.getMenu("FrequencyType")));
    dimPanel.setBorder(BorderFactory.createTitledBorder(app.getPlain("Dimensions")));

    // histogram options
    ckManual.setText(app.getMenu("SetClasssesManually"));
    lblFreqType.setText(app.getMenu("FrequencyType") + ":");

    rbFreq.setText(app.getMenu("Count"));
    rbNormalized.setText(app.getMenu("Normalized"));
    rbRelative.setText(app.getMenu("Relative"));

    ckCumulative.setText(app.getMenu("Cumulative"));
    lblOverlay.setText(app.getMenu("Overlay"));
    ckOverlayNormal.setText(app.getMenu("NormalCurve"));
    ckOverlayPolygon.setText(app.getMenu("FrequencyPolygon"));
    ckShowFrequencyTable.setText(app.getMenu("FrequencyTable"));

    lblClassRule.setText(app.getMenu("ClassRule") + ":");
    rbRightRule.setText(app.getMenu("RightClassRule"));
    rbLeftRule.setText(app.getMenu("LeftClassRule"));

    // graph options
    ckAutoWindow.setText(app.getMenu("AutoDimension"));
    ckShowGrid.setText(app.getPlain("ShowGrid"));
    lblXMin.setText(app.getPlain("xmin") + ":");
    lblXMax.setText(app.getPlain("xmax") + ":");
    lblYMin.setText(app.getPlain("ymin") + ":");
    lblYMax.setText(app.getPlain("ymax") + ":");

    lblXInterval.setText(app.getPlain("xstep") + ":");
    lblYInterval.setText(app.getPlain("ystep") + ":");

    ckShowLines.setText(app.getMenu("LineGraph"));

    repaint();
  }
Example #30
0
  final void setTextByLocale(Locale locale) {
    changeLocale(locale);
    // remove all template item to re-add other locale-spec items
    // if (templateList.getModel().getSize() > 0) {
    // templateList.removeAllItems();
    // }
    initTemplates();

    mainFrame.setTitle(localeHelper.getLocaleString(UIConstants.MAIN_WINDOW_TITLE));
    optionsBorder.setTitle(localeHelper.getLocaleString(UIConstants.BORDER_OPTIONS_TITLE));
    templateLabel.setText(localeHelper.getLocaleString(UIConstants.LABEL_TEMPLATE));
    useTemplateCheckBox.setText(localeHelper.getLocaleString(UIConstants.CHECKBOX_USETEMPLATE));
    useNumberRadioButton.setText(localeHelper.getLocaleString(UIConstants.RADIO_NUMTOCHANGE));
    useAlphaBetaRadioButton.setText(localeHelper.getLocaleString(UIConstants.RADIO_ALPHATOCHANGE));
    startPositionLabel.setText(localeHelper.getLocaleString(UIConstants.LABEL_STARTPOSITION));
    previewButton.setText(localeHelper.getLocaleString(UIConstants.BUTTON_PREVIEW));
    beginButton.setText(localeHelper.getLocaleString(UIConstants.BUTTON_BEGIN));
    changeSuffixCheck.setText(localeHelper.getLocaleString(UIConstants.LABEL_CHANGESUFFIX));
    previewLabel.setText(localeHelper.getLocaleString(UIConstants.LABEL_PREVIEW));
    addButton.setText(localeHelper.getLocaleString(UIConstants.BUTTON_ADD));
    removeButton.setText(localeHelper.getLocaleString(UIConstants.BUTTON_REMOVE));
    upperLowerTransformLabel.setText(localeHelper.getLocaleString(UIConstants.LABEL_ULTRANSFORM));

    fileMenu.setText(localeHelper.getLocaleString(UIConstants.MENU_FILE));
    fileOpen.setText(localeHelper.getLocaleString(UIConstants.MENU_FILE_OPEN));
    fileClose.setText(localeHelper.getLocaleString(UIConstants.MENU_FILE_EXIT));

    // used for language selection, for future add-on
    /*
    languageMenu.setText(localHelper
    .getLocalString(UIConstants.MENU_LANGUAGE));
    eng.setText(localHelper.getLocalString(UIConstants.MENU_LANGUAGE_ENG));
    chn.setText(localHelper.getLocalString(UIConstants.MENU_LANGUAGE_CHN));
    */
    textArea.replaceRange(
        localeHelper.getLocaleString(UIConstants.TEMPLATE_README),
        0,
        textArea.getDocument().getLength());

    mainFrame.pack();
  }