@Override
  public void actionPerformed(ActionEvent AE) {
    if (AE.getSource() == CheckAll) {
      boolean Selection = CheckAll.isSelected();
      if (Selection) CheckAll.setText("Uncheck all");
      else CheckAll.setText("Check all");
      for (int i = 0; i < NumberOfCourses; i++) My[i].CourseCheckBox.setSelected(Selection);
    }

    if (AE.getSource() == DocButton)
      if (TempControll.ConnectionManagerObject.createConnection()) {

        new File(System.getProperty("user.home") + "/TermResultCalculator/StudentDocs/").mkdirs();
        if (gatherDataForDocument()) {
          if (TempControll.StudentPdfObject.createPDF(
              this.Roll, this.Session, this.Selected, this.Taken, this.Completed, this.GPA))
            JOptionPane.showMessageDialog(
                RPS,
                "Report created successfully at "
                    + System.getProperty("user.home")
                    + "/TermResultCalculator/StudentDocs/",
                "Success",
                JOptionPane.INFORMATION_MESSAGE);
          else
            JOptionPane.showMessageDialog(
                RPS, "Error while creating report.", "Error", JOptionPane.ERROR_MESSAGE);
        } else
          JOptionPane.showMessageDialog(
              RPS,
              "At least one course has to be selected.",
              "Error : No Selection",
              JOptionPane.ERROR_MESSAGE);
      }
  }
 private void updateLabel() {
   if (myTarget != null) {
     myRunTargetCheckBox.setText("Run Ant target '" + myTarget.getName() + "'");
   } else {
     myRunTargetCheckBox.setText("Run Ant target <none>");
   }
 }
示例#3
0
  private void refreshLanguage() {
    hideJunkMessagesCheckBox.setText(language.getString("Options.junk.hideJunkMessages"));
    markJunkIdentityBadCheckBox.setText(language.getString("Options.junk.markJunkIdentityBad"));

    stopBoardUpdatesWhenDosedCheckBox.setText(
        language.getString("Options.junk.stopBoardUpdatesWhenDosed"));
    LinvalidSubsequentMessagesThreshold.setText(
        language.getString("Options.junk.invalidSubsequentMessagesThreshold"));
  }
  @NotNull
  @Override
  public JComponent getComponent(
      @Nullable PropertiesContainer container,
      @Nullable PropertyContext context,
      Object object,
      @Nullable InplaceContext inplaceContext) {
    myComponent = (RadComponent) container;
    myRootComponent =
        context instanceof RadPropertyContext
            ? ((RadPropertyContext) context).getRootComponent()
            : null;

    String value = (String) object;
    JTextField text = getComboText();

    if (text == null) {
      if (StringUtil.isEmpty(value) || value.equals("true") || value.equals("false")) {
        myBooleanResourceValue = null;
      } else {
        myBooleanResourceValue = value;
      }

      try {
        myIgnoreCheckBoxValue = true;
        myCheckBox.setSelected(Boolean.parseBoolean(value));
      } finally {
        myIgnoreCheckBoxValue = false;
      }

      if (inplaceContext == null) {
        myEditor.setBorder(null);
        myCheckBox.setText(null);
      } else {
        myEditor.setBorder(myCheckBoxBorder);
        myCheckBox.setText(myBooleanResourceValue);
      }
    } else {
      text.setText(value);
      if (inplaceContext != null) {
        text.setColumns(0);
        if (inplaceContext.isStartChar()) {
          text.setText(inplaceContext.getText(text.getText()));
        }
      }
    }
    return myEditor;
  }
示例#5
0
  public EditorOptionsPanel() {
    if (SystemInfo.isMac) {
      myCbEnableWheelFontChange.setText(
          ApplicationBundle.message("checkbox.enable.ctrl.mousewheel.changes.font.size.macos"));
    }

    myStripTrailingSpacesCombo.addItem(STRIP_CHANGED);
    myStripTrailingSpacesCombo.addItem(STRIP_ALL);
    myStripTrailingSpacesCombo.addItem(STRIP_NONE);

    myHighlightSettingsPanel.setLayout(new BorderLayout());
    myHighlightSettingsPanel.add(myErrorHighlightingPanel.getPanel(), BorderLayout.CENTER);

    myRichCopyColorSchemeComboBox.setRenderer(
        new ListCellRendererWrapper<String>() {
          @Override
          public void customize(
              JList list, String value, int index, boolean selected, boolean hasFocus) {
            final String textToUse;
            if (RichCopySettings.ACTIVE_GLOBAL_SCHEME_MARKER.equals(value)) {
              textToUse = ACTIVE_COLOR_SCHEME;
            } else {
              textToUse = value;
            }
            setText(textToUse);
          }
        });

    myConfigurable = new MyConfigurable();
    initQuickDocProcessing();
    initSoftWrapsSettingsProcessing();
  }
  /**
   * This function takes the given customer or waiter object and changes the information panel to
   * hold that person's info.
   *
   * @param person customer or waiter object
   */
  public void updateInfoPanel(Object person) {
    stateCB.setVisible(true);
    changeOrder.setVisible(false);
    currentPerson = person;

    if (person instanceof CustomerAgent) {
      CustomerAgent customer = (CustomerAgent) person;
      stateCB.setText("Hungry?");
      changeOrder.setVisible(true);
      // changeOrder.setText("Change Order?");
      // changeOrder.setSelected(customer.waiter.requestingChange(customer));
      // changeOrder.setEnabled(!customer.waiter.requestingChange(customer));
      stateCB.setSelected(customer.isHungry());
      stateCB.setEnabled(!customer.isHungry());
      infoLabel.setText("<html><pre>     Name: " + customer.getName() + " </pre></html>");

    } else if (person instanceof WaiterAgent) {
      WaiterAgent waiter = (WaiterAgent) person;
      // stateCB.setText("On Break?");
      // stateCB.setSelected(waiter.isOnBreak());
      // stateCB.setEnabled(true);
      requestBreak.setVisible(true);
      stateCB.setVisible(false);
      changeOrder.setVisible(false);
      infoLabel.setText("<html><pre>     Name: " + waiter.getName() + " </html>");
    }

    infoPanel.validate();
  }
  private void affectLibelle() {
    setTitle(ConcoursJeunes.ajrLibelle.getResourceString("criterion.titre"));

    jlCode.setText(ConcoursJeunes.ajrLibelle.getResourceString("criterion.code"));
    jlLibelle.setText(ConcoursJeunes.ajrLibelle.getResourceString("criterion.libelle"));
    jlSortOrder.setText(ConcoursJeunes.ajrLibelle.getResourceString("criterion.ordretri"));
    jcbSortOrder.removeAllItems();
    jcbSortOrder.addItem(ConcoursJeunes.ajrLibelle.getResourceString("criterion.ordretri.asc"));
    jcbSortOrder.addItem(ConcoursJeunes.ajrLibelle.getResourceString("criterion.ordretri.desc"));
    jcbPlacementCriterion.setText(
        ConcoursJeunes.ajrLibelle.getResourceString("criterion.placement"));
    jcbClassementCriterion.setText(
        ConcoursJeunes.ajrLibelle.getResourceString("criterion.classement"));

    jbValider.setText(ConcoursJeunes.ajrLibelle.getResourceString("bouton.valider"));
    jbAnnuler.setText(ConcoursJeunes.ajrLibelle.getResourceString("bouton.annuler"));
  }
示例#8
0
 public JCheckBox getWholeWordCheckBox() {
   if (wholeWordCheckBox == null) {
     wholeWordCheckBox = new JCheckBox();
     wholeWordCheckBox.setText("Whole Words Only");
     wholeWordCheckBox.setMnemonic('W');
     wholeWordCheckBox.addActionListener(this);
   }
   return wholeWordCheckBox;
 }
  protected void createOccurrencesCb(
      GridBagConstraints gbConstraints, JPanel panel, final int occurenceNumber) {
    myCbReplaceAllOccurences = new NonFocusableCheckBox();
    myCbReplaceAllOccurences.setText(
        RefactoringBundle.message("replace.all.occurences", occurenceNumber));

    panel.add(myCbReplaceAllOccurences, gbConstraints);
    myCbReplaceAllOccurences.setSelected(false);
  }
示例#10
0
 public JCheckBox getCaseSensitiveCheckBox() {
   if (caseSensitiveCheckBox == null) {
     caseSensitiveCheckBox = new JCheckBox();
     caseSensitiveCheckBox.setText("Case Sensitive");
     caseSensitiveCheckBox.setMnemonic('v');
     caseSensitiveCheckBox.setDisplayedMnemonicIndex(12);
     caseSensitiveCheckBox.addActionListener(this);
   }
   return caseSensitiveCheckBox;
 }
示例#11
0
 /**
  * updateCustomerInformationPanel() takes the given customer (or, for v3, Host) object and changes
  * the information panel to hold that person's info.
  *
  * @param temp customer (or waiter) object
  */
 public void updateCustomerInformationPanel(Customer temp) {
   customerStateCheckBox.setVisible(true);
   currentCustomer = temp;
   Customer customer = temp;
   customerStateCheckBox.setText("Hungry?");
   customerStateCheckBox.setSelected(customer.getGui().isHungry());
   customerStateCheckBox.setEnabled(!customer.getGui().isHungry());
   infoCustomerLabel.setText("<html><pre>     Name: " + customer.getName() + " </pre></html>");
   customerInformationPanel.validate();
 }
  private void jbInit() throws Exception {
    label1.setText("En Label");

    button1.setText("OK");

    checkbox1.setText("En"); // sæt afkrydsningsfelternes navne
    checkbox2.setText("To");
    checkbox3.setText("Tre");

    radio1.setText("Radio1"); // sæt radioknappernes navne og
    radio2.setText("Radio2");
    buttonGroup1.add(radio1); // gruppe - så de gensidigt udelukker hinanden
    buttonGroup1.add(radio2);
    radio1.setSelected(true);

    comboBox1.addItem("ComboBox Rød");
    comboBox1.addItem("ComboBox Grøn");
    comboBox1.addItem("ComboBox Blå");

    textField1.setColumns(10);
    textField1.setText("Et TextField");

    textArea1.setColumns(15);
    textArea1.setRows(5);
    textArea1.setText("Et TextArea");

    this.setLayout(flowLayout1); // sæt layout-manager (se senere)

    this.add(label1); // til sidst skal komponenterne føjes
    this.add(button1); // til containeren (se senere)
    this.add(checkbox1);
    this.add(checkbox2);
    this.add(checkbox3);
    this.add(radio1);
    this.add(radio2);
    this.add(textField1);
    this.add(textArea1);
    this.add(comboBox1);
    this.add(list1);
  }
示例#13
0
  private void refreshLanguage() {
    uploadPrioLabel.setText(language.getString("Options.news.1.messageUploadPriority") + " (2)");
    downloadPrioLabel.setText(
        language.getString("Options.news.1.messageDownloadPriority") + " (2)");
    useOneConnectionForMessagesCheckBox.setText(
        language.getString("Options.news.1.useOneConnectionForMessages"));
    displayDaysLabel.setText(language.getString("Options.news.1.numberOfDaysToDisplay") + " (15)");
    downloadDaysLabel.setText(
        language.getString("Options.news.1.numberOfDaysToDownloadBackwards") + " (5)");
    messageBaseLabel.setText(language.getString("Options.news.1.messageBase") + " (news)");
    alwaysDownloadBackloadCheckBox.setText(
        language.getString("Options.news.1.alwaysDownloadBackload"));
    alwaysDownloadBackloadCheckBox.setToolTipText(
        language.getString("Options.news.1.alwaysDownloadBackload.tooltip"));

    final String minutes = language.getString("Options.common.minutes");

    minimumIntervalLabel.setText(
        language.getString("Options.news.3.minimumUpdateInterval") + " (" + minutes + ") (45)");
    concurrentUpdatesLabel.setText(
        language.getString("Options.news.3.numberOfConcurrentlyUpdatingBoards") + " (6)");

    automaticBoardUpdateCheckBox.setText(language.getString("Options.news.3.automaticBoardUpdate"));

    storeSentMessagesCheckBox.setText(language.getString("Options.news.1.storeSentMessages"));
    silentlyRetryCheckBox.setText(language.getString("Options.news.3.silentlyRetryFailedMessages"));

    final String off = language.getString("Options.common.off");
    altEditCheckBox.setText(
        language.getString("Options.miscellaneous.useEditorForWritingMessages") + " (" + off + ")");
  }
  private void setupDialog() {
    myReplaceAll.setMnemonic(KeyEvent.VK_A);
    myNameLabel.setLabelFor(myNameComboBox);

    // Replace occurrences check box setup
    if (myOccurrencesCount > 1) {
      myReplaceAll.setSelected(false);
      myReplaceAll.setEnabled(true);
      myReplaceAll.setText(myReplaceAll.getText() + " (" + myOccurrencesCount + " occurrences)");
    } else {
      myReplaceAll.setSelected(false);
      myReplaceAll.setEnabled(false);
    }
  }
  public void loadProperties() {
    for (XBreakpointPropertiesSubPanel<B> panel : mySubPanels) {
      panel.loadProperties();
    }

    if (myConditionComboBox != null) {
      String condition = myBreakpoint.getCondition();
      myConditionComboBox.setText(condition != null ? condition : "");
    }

    for (XBreakpointCustomPropertiesPanel<B> customPanel : myCustomPanels) {
      customPanel.loadFrom(myBreakpoint);
    }
    myEnabledCheckbox.setSelected(myBreakpoint.isEnabled());
    myEnabledCheckbox.setText(XBreakpointUtil.getShortText(myBreakpoint));
  }
示例#16
0
 /* WARNING: THIS METHOD WILL BE REGENERATED. */
 private javax.swing.JCheckBox getDebug() {
   if (ivjDebug == null) {
     try {
       ivjDebug = new javax.swing.JCheckBox();
       ivjDebug.setName("Debug");
       ivjDebug.setText("ORB debug");
       // user code begin {1}
       // user code end
     } catch (java.lang.Throwable ivjExc) {
       // user code begin {2}
       // user code end
       handleException(ivjExc);
     }
   }
   return ivjDebug;
 }
  public EditorOptionsPanel() {
    if (SystemInfo.isMac) {
      myCbEnableWheelFontChange.setText(
          ApplicationBundle.message("checkbox.enable.ctrl.mousewheel.changes.font.size.macos"));
    }

    myStripTrailingSpacesCombo.addItem(STRIP_CHANGED);
    myStripTrailingSpacesCombo.addItem(STRIP_ALL);
    myStripTrailingSpacesCombo.addItem(STRIP_NONE);
    ActionListener explainer =
        new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
            explainTrailingSpaces(getStripTrailingSpacesValue());
          }
        };
    myStripTrailingSpacesCombo.addActionListener(explainer);
    myCbVirtualSpace.addActionListener(explainer);

    myHighlightSettingsPanel.setLayout(new BorderLayout());
    myHighlightSettingsPanel.add(myErrorHighlightingPanel.getPanel(), BorderLayout.CENTER);

    myCbRenameLocalVariablesInplace.setVisible(
        OptionsApplicabilityFilter.isApplicable(OptionId.RENAME_IN_PLACE));

    myRichCopyColorSchemeComboBox.setRenderer(
        new ListCellRendererWrapper<String>() {
          @Override
          public void customize(
              JList list, String value, int index, boolean selected, boolean hasFocus) {
            final String textToUse;
            if (RichCopySettings.ACTIVE_GLOBAL_SCHEME_MARKER.equals(value)) {
              textToUse = ACTIVE_COLOR_SCHEME;
            } else {
              textToUse = value;
            }
            setText(textToUse);
          }
        });

    myConfigurable = new MyConfigurable();
    initQuickDocProcessing();
    initSoftWrapsSettingsProcessing();
    initVcsSettingsProcessing();
  }
  @Override
  public void update(final AnActionEvent e) {
    super.update(e);
    Presentation presentation = e.getPresentation();
    Object property = presentation.getClientProperty(CUSTOM_COMPONENT_PROPERTY);
    if (property instanceof JCheckBox) {
      JCheckBox checkBox = (JCheckBox) property;

      checkBox.setText(presentation.getText());
      checkBox.setToolTipText(presentation.getDescription());
      checkBox.setMnemonic(presentation.getMnemonic());
      checkBox.setDisplayedMnemonicIndex(presentation.getDisplayedMnemonicIndex());
      checkBox.setSelected(Boolean.TRUE.equals(presentation.getClientProperty(SELECTED_PROPERTY)));

      checkBox.setEnabled(presentation.isEnabled());
      checkBox.setVisible(presentation.isVisible());
    }
  }
 public Component getListCellRendererComponent(
     JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
   if (containerBox == null) {
     containerBox = Box.createHorizontalBox();
     checkBox = new JCheckBox();
     checkBox.setEnabled(isEnabled());
     checkBox.setFont(getFont());
     checkBox.setFocusPainted(false);
     checkBox.setBorderPainted(true);
     checkBox.setBorder(
         isSelected ? UIManager.getBorder("List.focusCellHighlightBorder") : noFocusBorder);
     containerBox.add(checkBox);
   }
   checkBox.setBackground(isSelected ? getSelectionBackground() : getBackground());
   checkBox.setForeground(isSelected ? getSelectionForeground() : getForeground());
   if (value != null) {
     ListItem item = (ListItem) value;
     checkBox.setText(item.dataItem.toString());
     checkBox.setSelected(item.selected);
   }
   return containerBox;
 }
 /**
  * Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
  * call it in your code!
  *
  * @noinspection ALL
  */
 private void $$$setupUI$$$() {
   createUIComponents();
   pnlMain = new JPanel();
   pnlMain.setLayout(
       new FormLayout(
           "fill:d:grow",
           "fill:120dlu:noGrow,top:4dlu:noGrow,center:d:grow,top:4dlu:noGrow,fill:16dlu:noGrow"));
   pnlMain.setMinimumSize(new Dimension(750, 435));
   pnlMain.setPreferredSize(new Dimension(750, 435));
   pnlForm.setLayout(
       new FormLayout(
           "fill:50dlu:noGrow,left:4dlu:noGrow,fill:50dlu:noGrow,left:4dlu:noGrow,fill:10dlu:noGrow,left:4dlu:noGrow,fill:50dlu:noGrow,left:4dlu:noGrow,fill:50dlu:noGrow,left:4dlu:noGrow,fill:50dlu:noGrow,left:4dlu:noGrow,fill:40dlu:noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow",
           "fill:12dlu:noGrow,top:4dlu:noGrow,fill:12dlu:noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,fill:12dlu:noGrow,top:4dlu:noGrow,fill:12dlu:noGrow"));
   CellConstraints cc = new CellConstraints();
   pnlMain.add(pnlForm, cc.xy(1, 1));
   lblBuscar = new JLabel();
   lblBuscar.setText("Código ");
   pnlForm.add(lblBuscar, cc.xy(1, 1));
   txtCoInstitucion = new JTextField();
   pnlForm.add(txtCoInstitucion, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.DEFAULT));
   chkEstado = new JCheckBox();
   chkEstado.setText("");
   pnlForm.add(chkEstado, cc.xy(15, 7));
   lblEstado = new JLabel();
   lblEstado.setText("Estado");
   pnlForm.add(lblEstado, cc.xy(13, 7));
   lblNuNroCuenta = new JLabel();
   lblNuNroCuenta.setText("N° Cuenta");
   pnlForm.add(lblNuNroCuenta, cc.xy(1, 9));
   txtNuNroCuenta = new JTextField();
   pnlForm.add(txtNuNroCuenta, cc.xyw(3, 9, 5, CellConstraints.FILL, CellConstraints.DEFAULT));
   lblProveedor = new JLabel();
   lblProveedor.setText("Institución");
   pnlForm.add(lblProveedor, cc.xy(7, 1));
   txtDeCortaInstitucion = new JTextField();
   pnlForm.add(
       txtDeCortaInstitucion, cc.xyw(3, 5, 5, CellConstraints.FILL, CellConstraints.DEFAULT));
   txtDeInstitucion = new JTextField();
   pnlForm.add(txtDeInstitucion, cc.xyw(7, 3, 9, CellConstraints.FILL, CellConstraints.DEFAULT));
   lblDeMensajeLargo = new JLabel();
   lblDeMensajeLargo.setText("RUC");
   pnlForm.add(lblDeMensajeLargo, cc.xy(3, 1));
   txtNuRucInstitucion = new JTextField();
   pnlForm.add(txtNuRucInstitucion, cc.xy(3, 3, CellConstraints.FILL, CellConstraints.DEFAULT));
   lblDeCortaInstitucion = new JLabel();
   lblDeCortaInstitucion.setText("Desc. Corta");
   pnlForm.add(lblDeCortaInstitucion, cc.xy(1, 5));
   lblNuTelReferencia = new JLabel();
   lblNuTelReferencia.setText("Teléfono");
   pnlForm.add(lblNuTelReferencia, cc.xy(9, 5));
   txtNuTelReferencia = new JTextField();
   pnlForm.add(txtNuTelReferencia, cc.xy(11, 5, CellConstraints.FILL, CellConstraints.DEFAULT));
   lblObservacion = new JLabel();
   lblObservacion.setText("Dirección");
   pnlForm.add(lblObservacion, cc.xy(1, 7));
   txtDeDireccion = new JTextField();
   pnlForm.add(txtDeDireccion, cc.xyw(3, 7, 9, CellConstraints.FILL, CellConstraints.DEFAULT));
   lblNoContacto = new JLabel();
   lblNoContacto.setText("Contacto");
   pnlForm.add(lblNoContacto, cc.xy(9, 9));
   txtNoContacto = new JTextField();
   pnlForm.add(txtNoContacto, cc.xyw(11, 9, 5, CellConstraints.FILL, CellConstraints.DEFAULT));
   footerPanel = new JPanel();
   footerPanel.setLayout(new FormLayout("right:d:grow", "fill:16dlu:noGrow"));
   pnlMain.add(footerPanel, cc.xy(1, 5));
   lblEsc = new JLabel();
   lblEsc.setText("Esc = Salir");
   footerPanel.add(lblEsc, cc.xy(1, 1));
   pnlGrid = new JPanel();
   pnlGrid.setLayout(
       new FormLayout("fill:612px:noGrow", "center:d:noGrow,top:4dlu:noGrow,center:d:grow"));
   pnlMain.add(pnlGrid, cc.xy(1, 3));
   pnlTitGrid = new JPanel();
   pnlTitGrid.setLayout(
       new FormLayout("fill:16dlu:noGrow,left:4dlu:noGrow,fill:d:grow", "fill:16dlu:noGrow"));
   pnlGrid.add(pnlTitGrid, cc.xy(1, 1));
   chkSel = new JCheckBox();
   chkSel.setText("");
   pnlTitGrid.add(chkSel, cc.xy(1, 1));
   lblTitGrid = new JLabel();
   lblTitGrid.setText("Locales");
   pnlTitGrid.add(lblTitGrid, cc.xy(3, 1));
   pnlResult = new JScrollPane();
   pnlGrid.add(pnlResult, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.FILL));
   tblGrid = new JTable();
   pnlResult.setViewportView(tblGrid);
 }
 /**
  * Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
  * call it in your code!
  *
  * @noinspection ALL
  */
 private void $$$setupUI$$$() {
   mainPane = new JPanel();
   mainPane.setLayout(
       new com.intellij.uiDesigner.core.GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));
   previewBox = new FloorPreviewPanel();
   mainPane.add(
       previewBox,
       new com.intellij.uiDesigner.core.GridConstraints(
           1,
           0,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER,
           com.intellij.uiDesigner.core.GridConstraints.FILL_NONE,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW,
           new Dimension(128, 128),
           new Dimension(128, 128),
           null,
           0,
           false));
   final JToolBar toolBar1 = new JToolBar();
   mainPane.add(
       toolBar1,
       new com.intellij.uiDesigner.core.GridConstraints(
           0,
           0,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER,
           com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           null,
           new Dimension(-1, 20),
           null,
           0,
           false));
   saveButton = new JButton();
   saveButton.setText("Save");
   toolBar1.add(saveButton);
   saveAsNewButton = new JButton();
   saveAsNewButton.setText("Save As New");
   toolBar1.add(saveAsNewButton);
   resetButton = new JButton();
   resetButton.setText("Reset");
   toolBar1.add(resetButton);
   final JPanel panel1 = new JPanel();
   panel1.setLayout(
       new com.intellij.uiDesigner.core.GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));
   mainPane.add(
       panel1,
       new com.intellij.uiDesigner.core.GridConstraints(
           2,
           0,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER,
           com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK
               | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK
               | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW,
           null,
           null,
           null,
           0,
           false));
   gameTexture = new JSpinner();
   panel1.add(
       gameTexture,
       new com.intellij.uiDesigner.core.GridConstraints(
           3,
           1,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
           com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           null,
           null,
           null,
           0,
           false));
   final JLabel label1 = new JLabel();
   label1.setText("Texture:");
   panel1.add(
       label1,
       new com.intellij.uiDesigner.core.GridConstraints(
           3,
           0,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
           com.intellij.uiDesigner.core.GridConstraints.FILL_NONE,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           null,
           null,
           null,
           0,
           false));
   gameColour = new ColourEditor();
   panel1.add(
       gameColour,
       new com.intellij.uiDesigner.core.GridConstraints(
           4,
           0,
           1,
           2,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER,
           com.intellij.uiDesigner.core.GridConstraints.FILL_NONE,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK
               | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK
               | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW,
           null,
           null,
           null,
           0,
           false));
   blendingCheckbox = new JCheckBox();
   blendingCheckbox.setSelected(false);
   blendingCheckbox.setText("Blend colour");
   panel1.add(
       blendingCheckbox,
       new com.intellij.uiDesigner.core.GridConstraints(
           1,
           0,
           1,
           2,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
           com.intellij.uiDesigner.core.GridConstraints.FILL_NONE,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK
               | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           null,
           null,
           null,
           0,
           false));
   gameName = new JTextField();
   panel1.add(
       gameName,
       new com.intellij.uiDesigner.core.GridConstraints(
           2,
           1,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
           com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           null,
           new Dimension(150, -1),
           null,
           0,
           false));
   final JLabel label2 = new JLabel();
   label2.setText("Name:");
   panel1.add(
       label2,
       new com.intellij.uiDesigner.core.GridConstraints(
           2,
           0,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
           com.intellij.uiDesigner.core.GridConstraints.FILL_NONE,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           null,
           null,
           null,
           0,
           false));
   final JLabel label3 = new JLabel();
   label3.setText("Edit mode:");
   panel1.add(
       label3,
       new com.intellij.uiDesigner.core.GridConstraints(
           0,
           0,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
           com.intellij.uiDesigner.core.GridConstraints.FILL_NONE,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           null,
           null,
           null,
           0,
           false));
   previewModeBox = new JComboBox();
   panel1.add(
       previewModeBox,
       new com.intellij.uiDesigner.core.GridConstraints(
           0,
           1,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
           com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           null,
           null,
           null,
           0,
           false));
   final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();
   mainPane.add(
       spacer1,
       new com.intellij.uiDesigner.core.GridConstraints(
           3,
           0,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER,
           com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL,
           1,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW,
           null,
           null,
           null,
           0,
           false));
 }
示例#22
0
 /**
  * Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
  * call it in your code!
  */
 private void $$$setupUI$$$() {
   mainPane = new JPanel();
   mainPane.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));
   excluded = new JCheckBox();
   excluded.setText("Excluded");
   mainPane.add(
       excluded,
       new GridConstraints(
           1,
           0,
           1,
           1,
           GridConstraints.ANCHOR_WEST,
           GridConstraints.FILL_NONE,
           GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
           GridConstraints.SIZEPOLICY_FIXED,
           null,
           null,
           null));
   play = new JButton();
   play.setText("Play");
   mainPane.add(
       play,
       new GridConstraints(
           1,
           2,
           1,
           1,
           GridConstraints.ANCHOR_CENTER,
           GridConstraints.FILL_HORIZONTAL,
           GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
           GridConstraints.SIZEPOLICY_FIXED,
           null,
           null,
           null));
   zoom = new JSlider();
   zoom.setValue(0);
   mainPane.add(
       zoom,
       new GridConstraints(
           1,
           1,
           1,
           1,
           GridConstraints.ANCHOR_WEST,
           GridConstraints.FILL_HORIZONTAL,
           GridConstraints.SIZEPOLICY_WANT_GROW,
           GridConstraints.SIZEPOLICY_FIXED,
           null,
           null,
           null));
   spectrogram = new WordSpectrogramPanel();
   mainPane.add(
       spectrogram,
       new GridConstraints(
           0,
           1,
           1,
           1,
           GridConstraints.ANCHOR_CENTER,
           GridConstraints.FILL_NONE,
           GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
           GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
           null,
           null,
           null));
 }
 protected void addOptions(OptionGroup optionGroup) {
   myCbOpenInBrowser = new JCheckBox();
   myCbOpenInBrowser.setText(InspectionsBundle.message("inspection.export.open.option"));
   optionGroup.add(myCbOpenInBrowser);
 }
示例#24
0
 private void jbInit() throws Exception {
   border1 = BorderFactory.createLineBorder(Color.black, 2);
   titledBorder1 = new TitledBorder(border1, "Domain-specific settings");
   titledBorder2 =
       new TitledBorder(
           BorderFactory.createLineBorder(new Color(153, 153, 153), 2), "Default policy");
   titledBorder3 =
       new TitledBorder(
           BorderFactory.createLineBorder(new Color(153, 153, 153), 2), "Domain policy");
   jCheckBoxEnableCookies.setText("Enable Cookies");
   this.setLayout(gridBagLayout1);
   jPanelDomainSpecific.setBorder(titledBorder1);
   jRadioButtonDefaultReject.setText("Reject");
   jRadioButtonDefaultAsk.setText("Ask");
   jPanelDefaultPolicy.setBorder(titledBorder2);
   jPanelDomainPolicy.setBorder(titledBorder3);
   jPanelDomainPolicy.setLayout(borderLayout1);
   jRadioButtonDefaultAccept.setSelected(true);
   jRadioButtonDefaultAccept.setText("Accept");
   jRadioButtonDomainReject.setText("Reject");
   jRadioButtonDomainAsk.setText("Ask");
   jRadioButtonDomainAccept.setSelected(true);
   jRadioButtonDomainAccept.setText("Accept");
   jButtonDelete.setText("Delete");
   jButtonChange.setText("Change");
   jTextField1.setColumns(20);
   jLabel1.setText("Domain: ");
   jPanelDomain.setLayout(flowLayout1);
   flowLayout1.setAlignment(FlowLayout.LEFT);
   this.add(
       jCheckBoxEnableCookies,
       new GridBagConstraints(
           0,
           0,
           1,
           1,
           0.0,
           20.0,
           GridBagConstraints.CENTER,
           GridBagConstraints.NONE,
           new Insets(0, 0, 0, 0),
           0,
           0));
   this.add(
       jPanelDomainSpecific,
       new GridBagConstraints(
           0,
           1,
           2,
           2,
           100.0,
           100.0,
           GridBagConstraints.CENTER,
           GridBagConstraints.BOTH,
           new Insets(0, 0, 0, 0),
           0,
           0));
   this.add(
       jPanelDefaultPolicy,
       new GridBagConstraints(
           2,
           1,
           1,
           1,
           0.0,
           0.0,
           GridBagConstraints.WEST,
           GridBagConstraints.HORIZONTAL,
           new Insets(0, 0, 0, 0),
           0,
           0));
   jPanelDefaultPolicy.add(jRadioButtonDefaultAccept, null);
   jPanelDefaultPolicy.add(jRadioButtonDefaultAsk, null);
   jPanelDefaultPolicy.add(jRadioButtonDefaultReject, null);
   this.add(
       jPanelDomainPolicy,
       new GridBagConstraints(
           2,
           2,
           1,
           1,
           0.0,
           0.0,
           GridBagConstraints.NORTHWEST,
           GridBagConstraints.NONE,
           new Insets(0, 0, 0, 0),
           0,
           0));
   jPanelDomainPolicy.add(jPanelRadioButtons, BorderLayout.CENTER);
   jPanelRadioButtons.add(jRadioButtonDomainAccept, null);
   jPanelRadioButtons.add(jRadioButtonDomainAsk, null);
   jPanelRadioButtons.add(jRadioButtonDomainReject, null);
   jPanelDomainPolicy.add(jPanelButtons, BorderLayout.SOUTH);
   jPanelButtons.add(jButtonChange, null);
   jPanelButtons.add(jButtonDelete, null);
   jPanelDomainPolicy.add(jPanelDomain, BorderLayout.NORTH);
   jPanelDomain.add(jLabel1, null);
   jPanelDomain.add(jTextField1, null);
 }
示例#25
0
  private void setupUI() {
    JPanel batchInputPanel = new JPanel();
    batchInputPanel.setLayout(new GridLayoutManager(7, 2, new Insets(0, 0, 0, 0), -1, -1));
    batchInputPanel.setEnabled(true);
    this.add(
        batchInputPanel,
        new GridConstraints(
            2,
            0,
            1,
            1,
            GridConstraints.ANCHOR_CENTER,
            GridConstraints.FILL_BOTH,
            GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
            GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
            null,
            null,
            null,
            0,
            false));
    batchInputPanel.setBorder(
        BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null));
    final Spacer spacer3 = new Spacer();
    batchInputPanel.add(
        spacer3,
        new GridConstraints(
            6,
            0,
            1,
            1,
            GridConstraints.ANCHOR_CENTER,
            GridConstraints.FILL_VERTICAL,
            1,
            GridConstraints.SIZEPOLICY_WANT_GROW,
            null,
            new Dimension(195, 14),
            null,
            0,
            false));
    dpiXLabel = new JLabel("DPI X: ");
    batchInputPanel.add(
        dpiXLabel,
        new GridConstraints(
            2,
            0,
            1,
            1,
            GridConstraints.ANCHOR_WEST,
            GridConstraints.FILL_NONE,
            GridConstraints.SIZEPOLICY_FIXED,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            new Dimension(195, 16),
            null,
            0,
            false));
    dpiYLabel = new JLabel("DPI Y: ");
    batchInputPanel.add(
        dpiYLabel,
        new GridConstraints(
            3,
            0,
            1,
            1,
            GridConstraints.ANCHOR_WEST,
            GridConstraints.FILL_NONE,
            GridConstraints.SIZEPOLICY_FIXED,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            new Dimension(195, 16),
            null,
            0,
            false));
    startDepthLabel = new JLabel("Start Depth (meter): ");
    batchInputPanel.add(
        startDepthLabel,
        new GridConstraints(
            4,
            0,
            1,
            1,
            GridConstraints.ANCHOR_WEST,
            GridConstraints.FILL_NONE,
            GridConstraints.SIZEPOLICY_FIXED,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            new Dimension(195, 16),
            null,
            0,
            false));
    depthIncLabel = new JLabel("Depth Increment (meter): ");
    batchInputPanel.add(
        depthIncLabel,
        new GridConstraints(
            5,
            0,
            1,
            1,
            GridConstraints.ANCHOR_WEST,
            GridConstraints.FILL_NONE,
            GridConstraints.SIZEPOLICY_FIXED,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            new Dimension(195, 16),
            null,
            0,
            false));

    dpiXField = new JTextField();
    dpiXField.setEnabled(false);
    dpiXField.setHorizontalAlignment(11);

    dpiYField = new JTextField();
    dpiYField.setEnabled(false);
    dpiYField.setHorizontalAlignment(11);

    batchInputPanel.add(
        dpiXField,
        new GridConstraints(
            2,
            1,
            1,
            1,
            GridConstraints.ANCHOR_WEST,
            GridConstraints.FILL_HORIZONTAL,
            GridConstraints.SIZEPOLICY_WANT_GROW,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            new Dimension(100, -1),
            null,
            0,
            false));

    batchInputPanel.add(
        dpiYField,
        new GridConstraints(
            3,
            1,
            1,
            1,
            GridConstraints.ANCHOR_WEST,
            GridConstraints.FILL_HORIZONTAL,
            GridConstraints.SIZEPOLICY_WANT_GROW,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            new Dimension(100, -1),
            null,
            0,
            false));

    startDepthField = new JTextField();
    startDepthField.setEnabled(false);
    startDepthField.setHorizontalAlignment(11);

    batchInputPanel.add(
        startDepthField,
        new GridConstraints(
            4,
            1,
            1,
            1,
            GridConstraints.ANCHOR_WEST,
            GridConstraints.FILL_HORIZONTAL,
            GridConstraints.SIZEPOLICY_WANT_GROW,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            new Dimension(100, -1),
            null,
            0,
            false));
    depthIncField = new JTextField();
    depthIncField.setEnabled(false);
    depthIncField.setHorizontalAlignment(11);

    batchInputPanel.add(
        depthIncField,
        new GridConstraints(
            5,
            1,
            1,
            1,
            GridConstraints.ANCHOR_WEST,
            GridConstraints.FILL_HORIZONTAL,
            GridConstraints.SIZEPOLICY_WANT_GROW,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            new Dimension(100, -1),
            null,
            0,
            false));
    final JPanel applyPanel = new JPanel();
    applyPanel.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));
    batchInputPanel.add(
        applyPanel,
        new GridConstraints(
            6,
            0,
            1,
            2,
            GridConstraints.ANCHOR_CENTER,
            GridConstraints.FILL_BOTH,
            GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
            GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
            null,
            null,
            null,
            0,
            false));
    applyToAllButton = new JButton("Apply to All Rows");
    applyToAllButton.setEnabled(false);
    applyPanel.add(
        applyToAllButton,
        new GridConstraints(
            0,
            1,
            1,
            1,
            GridConstraints.ANCHOR_CENTER,
            GridConstraints.FILL_HORIZONTAL,
            GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            null,
            null,
            0,
            false));
    applyToSelectedButton = new JButton("Apply to Selected Rows");
    applyToSelectedButton.setEnabled(false);
    applyPanel.add(
        applyToSelectedButton,
        new GridConstraints(
            0,
            0,
            1,
            1,
            GridConstraints.ANCHOR_CENTER,
            GridConstraints.FILL_HORIZONTAL,
            GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            null,
            null,
            0,
            false));
    //		final Spacer spacer4 = new Spacer();
    //		applyPanel.add(spacer4, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
    // GridConstraints.FILL_HORIZONTAL,
    //				GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));
    orientationComboBox = new JComboBox();
    orientationComboBox.setEnabled(false);
    final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();
    defaultComboBoxModel1.addElement("Horizontal");
    defaultComboBoxModel1.addElement("Vertical");
    defaultComboBoxModel1.addElement("[Blank]");
    orientationComboBox.setModel(defaultComboBoxModel1);
    orientationComboBox.setSelectedIndex(2); // [Blank]

    batchInputPanel.add(
        orientationComboBox,
        new GridConstraints(
            0,
            1,
            1,
            1,
            GridConstraints.ANCHOR_WEST,
            GridConstraints.FILL_HORIZONTAL,
            GridConstraints.SIZEPOLICY_CAN_GROW,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            null,
            null,
            0,
            false));
    lengthLabel = new JLabel("Length (meter): ");
    batchInputPanel.add(
        lengthLabel,
        new GridConstraints(
            1,
            0,
            1,
            1,
            GridConstraints.ANCHOR_WEST,
            GridConstraints.FILL_NONE,
            GridConstraints.SIZEPOLICY_FIXED,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            null,
            null,
            0,
            false));
    lengthField = new JTextField();
    lengthField.setEnabled(false);
    lengthField.setHorizontalAlignment(11);

    batchInputPanel.add(
        lengthField,
        new GridConstraints(
            1,
            1,
            1,
            1,
            GridConstraints.ANCHOR_WEST,
            GridConstraints.FILL_HORIZONTAL,
            GridConstraints.SIZEPOLICY_WANT_GROW,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            new Dimension(150, -1),
            null,
            0,
            false));
    orientationLabel = new JLabel("Orientation: ");
    batchInputPanel.add(
        orientationLabel,
        new GridConstraints(
            0,
            0,
            1,
            1,
            GridConstraints.ANCHOR_WEST,
            GridConstraints.FILL_NONE,
            GridConstraints.SIZEPOLICY_FIXED,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            new Dimension(195, 16),
            null,
            0,
            false));
    useBatchInputCheckbox = new JCheckBox();
    useBatchInputCheckbox.setText("Batch input: blank fields will not be applied");
    this.add(
        useBatchInputCheckbox,
        new GridConstraints(
            1,
            0,
            1,
            1,
            GridConstraints.ANCHOR_WEST,
            GridConstraints.FILL_NONE,
            GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
            GridConstraints.SIZEPOLICY_FIXED,
            null,
            null,
            null,
            0,
            false));

    onBatch();
  }
示例#26
0
  public SceneLayoutApp() {
    super();
    new Pair();
    final JFrame frame = new JFrame("Scene Layout");

    final JPanel panel = new JPanel(new BorderLayout());
    frame.setContentPane(panel);
    final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    frame.setMaximumSize(screenSize);
    frame.setSize(screenSize);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    final JMenuBar mb = new JMenuBar();
    frame.setJMenuBar(mb);

    final JMenu jMenu = new JMenu("File");
    mb.add(jMenu);
    mb.add(new JMenu("Edit"));
    mb.add(new JMenu("Help"));
    JMenu menu = new JMenu("Look and Feel");

    //
    // Get all the available look and feel that we are going to use for
    // creating the JMenuItem and assign the action listener to handle
    // the selection of menu item to change the look and feel.
    //
    UIManager.LookAndFeelInfo[] lookAndFeelInfos = UIManager.getInstalledLookAndFeels();
    for (int i = 0; i < lookAndFeelInfos.length; i++) {
      final UIManager.LookAndFeelInfo lookAndFeelInfo = lookAndFeelInfos[i];
      JMenuItem item = new JMenuItem(lookAndFeelInfo.getName());
      item.addActionListener(
          new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              try {
                //
                // Set the look and feel for the frame and update the UI
                // to use a new selected look and feel.
                //
                UIManager.setLookAndFeel(lookAndFeelInfo.getClassName());
                SwingUtilities.updateComponentTreeUI(frame);
              } catch (ClassNotFoundException e1) {
                e1.printStackTrace();
              } catch (InstantiationException e1) {
                e1.printStackTrace();
              } catch (IllegalAccessException e1) {
                e1.printStackTrace();
              } catch (UnsupportedLookAndFeelException e1) {
                e1.printStackTrace();
              }
            }
          });
      menu.add(item);
    }

    mb.add(menu);
    jMenu.add(new JMenuItem(new scene.action.QuitAction()));

    panel.add(new JScrollPane(desktopPane), BorderLayout.CENTER);
    final JToolBar bar = new JToolBar();

    panel.add(bar, BorderLayout.NORTH);

    final JComboBox comboNewWindow =
        new JComboBox(
            new String[] {"320:180", "320:240", "640:360", "640:480", "1280:720", "1920:1080"});

    comboNewWindow.addActionListener(new CreateSceneWindowAction());

    comboNewWindow.setBorder(BorderFactory.createTitledBorder("Create New Window"));
    bar.add(comboNewWindow);
    bar.add(
        new AbstractAction("Progress Bars") {

          /** Invoked when an action occurs. */
          @Override
          public void actionPerformed(ActionEvent e) {
            new ProgressBarAnimator();
          }
        });
    bar.add(
        new AbstractAction("Sliders") {

          /** Invoked when an action occurs. */
          @Override
          public void actionPerformed(ActionEvent e) {
            new SliderBarAnimator();
          }
        });

    final JCheckBox permaViz = new JCheckBox();
    permaViz.setText("Show the dump window");
    permaViz.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));

    dumpWindow = new JInternalFrame("perma dump window");
    dumpWindow.setContentPane(new JScrollPane(permText));

    permaViz.addActionListener(
        new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
            dumpWindow.setVisible(permaViz.isSelected());
          }
        });

    comboNewWindow.setMaximumSize(comboNewWindow.getPreferredSize());

    permaViz.setSelected(false);
    bar.add(new CreateWebViewV1Action());
    bar.add(new CreateWebViewV2Action());
    bar.add(permaViz);
    desktopPane.add(dumpWindow);
    dumpWindow.setSize(400, 400);
    dumpWindow.setResizable(true);
    dumpWindow.setClosable(false);
    dumpWindow.setIconifiable(false);
    final JMenuBar m = new JMenuBar();
    final JMenu cmenu = new JMenu("Create");
    m.add(cmenu);
    final JMenuItem menuItem =
        new JMenuItem(
            new AbstractAction("new") {
              @Override
              public void actionPerformed(ActionEvent e) {
                Runnable runnable =
                    new Runnable() {
                      public void run() {
                        Object[] in = (Object[]) XSTREAM.fromXML(permText.getText());

                        final JInternalFrame ff = new JInternalFrame();

                        final ScenePanel c = new ScenePanel();
                        ff.setContentPane(c);
                        desktopPane.add(ff);
                        final Dimension d = (Dimension) in[0];
                        c.setMaximumSize(d);
                        c.setPreferredSize(d);

                        ff.setSize(d.width + 50, d.height + 50);
                        ScenePanel.panes.put(c, (List<Pair<Point, ArrayList<URL>>>) in[1]);

                        c.invalidate();
                        c.repaint();

                        ff.pack();
                        ff.setClosable(true);

                        ff.setMaximizable(false);
                        ff.setIconifiable(false);
                        ff.setResizable(false);
                        ff.show();
                      }
                    };

                SwingUtilities.invokeLater(runnable);
              }
            });
    cmenu.add(menuItem);
    //        JMenuBar menuBar = new JMenuBar();

    //        getContentPane().add(menuBar);

    dumpWindow.setJMenuBar(m);
    frame.setVisible(true);
  }
  protected JComponent createCenterPanel() {
    JPanel panel = new JPanel(new GridBagLayout());
    GridBagConstraints gbConstraints = new GridBagConstraints();
    gbConstraints.fill = GridBagConstraints.HORIZONTAL;
    gbConstraints.weightx = 1;
    gbConstraints.weighty = 0;
    gbConstraints.gridwidth = 1;
    gbConstraints.gridx = 0;
    gbConstraints.gridy = 0;
    gbConstraints.insets = JBUI.emptyInsets();

    if (myOccurrencesCount > 1) {
      myCbReplaceAll = new NonFocusableCheckBox();
      myCbReplaceAll.setText(
          RefactoringBundle.message("replace.all.occurences", myOccurrencesCount));

      panel.add(myCbReplaceAll, gbConstraints);
      myReplaceAllListener =
          new ItemListener() {
            public void itemStateChanged(ItemEvent e) {
              updateControls();
            }
          };
      myCbReplaceAll.addItemListener(myReplaceAllListener);

      if (myAnyLValueOccurences) {
        myCbReplaceWrite = new StateRestoringCheckBox();
        myCbReplaceWrite.setText(RefactoringBundle.message("replace.write.access.occurrences"));
        gbConstraints.insets = JBUI.insetsLeft(8);
        gbConstraints.gridy++;
        panel.add(myCbReplaceWrite, gbConstraints);
        myCbReplaceWrite.addItemListener(myReplaceAllListener);
      }
    }

    myCbFinal = new NonFocusableCheckBox();
    myCbFinal.setText(RefactoringBundle.message("declare.final"));
    final Boolean createFinals =
        JavaRefactoringSettings.getInstance().INTRODUCE_LOCAL_CREATE_FINALS;
    myCbFinalState =
        createFinals == null
            ? CodeStyleSettingsManager.getSettings(myProject).GENERATE_FINAL_LOCALS
            : createFinals.booleanValue();

    gbConstraints.insets = JBUI.emptyInsets();
    gbConstraints.gridy++;
    panel.add(myCbFinal, gbConstraints);
    myFinalListener =
        new ItemListener() {
          public void itemStateChanged(ItemEvent e) {
            if (myCbFinal.isEnabled()) {
              myCbFinalState = myCbFinal.isSelected();
            }
          }
        };
    myCbFinal.addItemListener(myFinalListener);

    updateControls();

    return panel;
  }
示例#28
0
  /** the JbInit method */
  public void jbInit() throws Exception {
    // Layout definition for this panel
    dataPanel.setLayout(panelLayout);
    dataPanel.setMinimumSize(new Dimension(100, 100));
    this.setLayout(borderLayout);
    this.setSize(new Dimension(862, 514));
    this.setPreferredSize(new Dimension(479, 306));
    this.setMinimumSize(new Dimension(479, 306));
    this.setMaximumSize(new Dimension(479, 306));
    mIdtraslo.setDocument((Document) panelBinding.bindUIControl("Idtraslo", mIdtraslo));
    mIdtraslo.setEditable(false);
    mDescrip.setFocusable(false);
    mDescrip.setEditable(false);
    mEstadotraslotxt.setFocusable(false);
    mEstadopasillotxt.setFocusable(false);
    mEstadoprocesotraslotxt.setFocusable(false);
    mDescripvisualEntrada.setFocusable(false);
    mDescripvisualSalida.setFocusable(false);
    mPasilloactual.setFocusable(false);
    mPasillodestino.setFocusable(true);
    mPosplc.setFocusable(false);
    jCheckBoxTrasbordoEntrada.setText("Trasbord Entradas");
    jCheckBoxTrasbordoEntrada.setToolTipText(
        "Realitzar trasbord per ubicar containers en entrada de passadis");
    dataPanel.add(
        labelIdtraslo,
        new GridBagConstraints(
            0,
            0,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    dataPanel.add(
        mIdtraslo,
        new GridBagConstraints(
            1,
            0,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    labelIdtraslo.setLabelFor(mIdtraslo);
    mIdtraslo.setColumns(5);
    labelIdtraslo.setText(panelBinding.findCtrlValueBinding("Idtraslo").getLabel());
    mIdtraslo.setToolTipText(panelBinding.findCtrlValueBinding("Idtraslo").getTooltip());
    mDescrip.setDocument((Document) panelBinding.bindUIControl("Descrip", mDescrip));
    dataPanel.add(
        labelDescrip,
        new GridBagConstraints(
            0,
            1,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    dataPanel.add(
        mDescrip,
        new GridBagConstraints(
            1,
            1,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    labelDescrip.setLabelFor(mDescrip);
    mDescrip.setColumns(15);
    labelDescrip.setText(panelBinding.findCtrlValueBinding("Descrip").getLabel());
    mDescrip.setToolTipText(panelBinding.findCtrlValueBinding("Descrip").getTooltip());
    mEstadotraslotxt.setDocument(
        (Document) panelBinding.bindUIControl("Estadotraslotxt", mEstadotraslotxt));
    dataPanel.add(
        labelEstadotraslotxt,
        new GridBagConstraints(
            0,
            2,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    dataPanel.add(
        mEstadotraslotxt,
        new GridBagConstraints(
            1,
            2,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    labelEstadotraslotxt.setLabelFor(mEstadotraslotxt);
    mEstadotraslotxt.setColumns(20);
    labelEstadotraslotxt.setText(panelBinding.findCtrlValueBinding("Estadotraslotxt").getLabel());
    mEstadotraslotxt.setToolTipText(
        panelBinding.findCtrlValueBinding("Estadotraslotxt").getTooltip());
    mEstadopasillotxt.setDocument(
        (Document) panelBinding.bindUIControl("Estadopasillotxt", mEstadopasillotxt));
    dataPanel.add(
        labelEstadopasillotxt,
        new GridBagConstraints(
            0,
            3,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    dataPanel.add(
        mEstadopasillotxt,
        new GridBagConstraints(
            1,
            3,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    labelEstadopasillotxt.setLabelFor(mEstadopasillotxt);
    mEstadopasillotxt.setColumns(20);
    labelEstadopasillotxt.setText(panelBinding.findCtrlValueBinding("Estadopasillotxt").getLabel());
    mEstadopasillotxt.setToolTipText(
        panelBinding.findCtrlValueBinding("Estadopasillotxt").getTooltip());
    mEstadoprocesotraslotxt.setDocument(
        (Document) panelBinding.bindUIControl("Estadoprocesotraslotxt", mEstadoprocesotraslotxt));
    dataPanel.add(
        labelEstadoprocesotraslotxt,
        new GridBagConstraints(
            0,
            4,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    dataPanel.add(
        mEstadoprocesotraslotxt,
        new GridBagConstraints(
            1,
            4,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    labelEstadoprocesotraslotxt.setLabelFor(mEstadoprocesotraslotxt);
    mEstadoprocesotraslotxt.setColumns(20);
    labelEstadoprocesotraslotxt.setText(
        panelBinding.findCtrlValueBinding("Estadoprocesotraslotxt").getLabel());
    mEstadoprocesotraslotxt.setToolTipText(
        panelBinding.findCtrlValueBinding("Estadoprocesotraslotxt").getTooltip());
    mDescripvisualEntrada.setDocument(
        (Document) panelBinding.bindUIControl("DescripvisualEntrada", mDescripvisualEntrada));
    dataPanel.add(
        labelDescripvisualEntrada,
        new GridBagConstraints(
            0,
            5,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    dataPanel.add(
        mDescripvisualEntrada,
        new GridBagConstraints(
            1,
            5,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    labelDescripvisualEntrada.setLabelFor(mDescripvisualEntrada);
    mDescripvisualEntrada.setColumns(20);
    labelDescripvisualEntrada.setText(
        panelBinding.findCtrlValueBinding("DescripvisualEntrada").getLabel());
    mDescripvisualEntrada.setToolTipText(
        panelBinding.findCtrlValueBinding("DescripvisualEntrada").getTooltip());
    mDescripvisualSalida.setDocument(
        (Document) panelBinding.bindUIControl("DescripvisualSalida", mDescripvisualSalida));
    dataPanel.add(
        labelDescripvisualSalida,
        new GridBagConstraints(
            0,
            6,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    dataPanel.add(
        mDescripvisualSalida,
        new GridBagConstraints(
            1,
            6,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    labelDescripvisualSalida.setLabelFor(mDescripvisualSalida);
    mDescripvisualSalida.setColumns(20);
    labelDescripvisualSalida.setText(
        panelBinding.findCtrlValueBinding("DescripvisualSalida").getLabel());
    mDescripvisualSalida.setToolTipText(
        panelBinding.findCtrlValueBinding("DescripvisualSalida").getTooltip());
    mPasilloactual.setDocument(
        (Document) panelBinding.bindUIControl("Pasilloactual", mPasilloactual));
    dataPanel.add(
        labelPasilloactual,
        new GridBagConstraints(
            0,
            7,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    dataPanel.add(
        mPasilloactual,
        new GridBagConstraints(
            1,
            7,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    labelPasilloactual.setLabelFor(mPasilloactual);
    mPasilloactual.setColumns(3);
    labelPasilloactual.setText(panelBinding.findCtrlValueBinding("Pasilloactual").getLabel());
    mPasilloactual.setToolTipText(panelBinding.findCtrlValueBinding("Pasilloactual").getTooltip());
    mPasillodestino.setDocument(
        (Document) panelBinding.bindUIControl("Pasillodestino", mPasillodestino));
    dataPanel.add(
        labelPasillodestino,
        new GridBagConstraints(
            0,
            8,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    dataPanel.add(
        mPasillodestino,
        new GridBagConstraints(
            1,
            8,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    labelPasillodestino.setLabelFor(mPasillodestino);
    mPasillodestino.setColumns(3);
    labelPasillodestino.setText(panelBinding.findCtrlValueBinding("Pasillodestino").getLabel());
    mPasillodestino.setToolTipText(
        panelBinding.findCtrlValueBinding("Pasillodestino").getTooltip());
    mPosplc.setDocument((Document) panelBinding.bindUIControl("Posplc", mPosplc));
    dataPanel.add(
        labelPosplc,
        new GridBagConstraints(
            0,
            9,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    dataPanel.add(
        mPosplc,
        new GridBagConstraints(
            1,
            9,
            1,
            1,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 0, 5),
            1,
            1));
    // dataPanel.add(buttonArrancar, new GridBagConstraints(0, 10, 3, 2, 0.0, 0.0,
    // GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(2, 0, 22, 63), -98, -13));
    dataPanel.add(
        buttonArrancar,
        new GridBagConstraints(
            0,
            10,
            3,
            2,
            0.0,
            0.0,
            GridBagConstraints.WEST,
            GridBagConstraints.NONE,
            new Insets(0, 0, 5, 5),
            0,
            0));
    // dataPanel.add(jCheckBoxTrasbordoEntrada, new GridBagConstraints(2, 8, 1, 1, 0.0, 0.0,
    // GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    labelPosplc.setLabelFor(mPosplc);
    mPosplc.setColumns(5);
    labelPosplc.setText(panelBinding.findCtrlValueBinding("Posplc").getLabel());

    // Layout the datapanel and the navigation bar
    mPosplc.setToolTipText(panelBinding.findCtrlValueBinding("Posplc").getTooltip());
    add(dataPanel, BorderLayout.CENTER);

    navBar.setModel(
        JUNavigationBar.createViewBinding(
            panelBinding, navBar, "SgavtrasloEntSalView1", null, "SgavtrasloEntSal1Iter"));
    statusBar.setModel(JUStatusBar.createPanelBinding(panelBinding, statusBar));
    add(navBar, BorderLayout.NORTH);
    add(statusBar, BorderLayout.SOUTH);

    // Quitar botones de add / remove
    navBar.remove(navBar.getButton(JUNavigationBar.BUTTON_DELETE));
    navBar.remove(navBar.getButton(JUNavigationBar.BUTTON_INSERT));
    jCheckBoxTrasbordoEntrada.setModel(
        (ButtonModel) panelBinding.bindUIControl("Trasbordoentrada", jCheckBoxTrasbordoEntrada));
    if (getIdTraslo() == 0) jCheckBoxTrasbordoEntrada.setEnabled(false);
  }
  private void addCheckbox(final JPanel panel, final TreeAction action) {
    String text =
        action instanceof FileStructureFilter
            ? ((FileStructureFilter) action).getCheckBoxText()
            : action instanceof FileStructureNodeProvider
                ? ((FileStructureNodeProvider) action).getCheckBoxText()
                : null;

    if (text == null) return;

    Shortcut[] shortcuts =
        action instanceof FileStructureFilter
            ? ((FileStructureFilter) action).getShortcut()
            : ((FileStructureNodeProvider) action).getShortcut();

    final JCheckBox chkFilter = new JCheckBox();
    UIUtil.applyStyle(UIUtil.ComponentStyle.SMALL, chkFilter);

    final boolean selected = getDefaultValue(action);
    chkFilter.setSelected(selected);
    myTreeActionsOwner.setActionIncluded(
        action, action instanceof FileStructureFilter ? !selected : selected);
    chkFilter.addActionListener(
        new ActionListener() {
          public void actionPerformed(final ActionEvent e) {
            final boolean state = chkFilter.isSelected();
            if (!myAutoClicked.contains(chkFilter)) {
              saveState(action, state);
            }
            myTreeActionsOwner.setActionIncluded(
                action, action instanceof FileStructureFilter ? !state : state);
            // final String filter = mySpeedSearch.isPopupActive() ?
            // mySpeedSearch.getEnteredPrefix() : null;
            // mySpeedSearch.hidePopup();
            Object selection =
                ContainerUtil.getFirstItem(myAbstractTreeBuilder.getSelectedElements());
            if (selection instanceof FilteringTreeStructure.FilteringNode) {
              selection = ((FilteringTreeStructure.FilteringNode) selection).getDelegate();
            }
            myTreeStructure.rebuildTree();
            myFilteringStructure.rebuild();

            final Object sel = selection;
            final Runnable runnable =
                new Runnable() {
                  public void run() {
                    ApplicationManager.getApplication()
                        .runReadAction(
                            new Runnable() {
                              @Override
                              public void run() {
                                myAbstractTreeBuilder
                                    .refilter(sel, true, false)
                                    .doWhenProcessed(
                                        new Runnable() {
                                          @Override
                                          public void run() {
                                            if (mySpeedSearch.isPopupActive()) {
                                              mySpeedSearch.refreshSelection();
                                            }
                                          }
                                        });
                              }
                            });
                  }
                };
            if (ApplicationManager.getApplication().isUnitTestMode()) {
              runnable.run();
            } else {
              ApplicationManager.getApplication().invokeLater(runnable);
            }
          }
        });
    chkFilter.setFocusable(false);

    if (shortcuts.length > 0) {
      text += " (" + KeymapUtil.getShortcutText(shortcuts[0]) + ")";
      new AnAction() {
        public void actionPerformed(final AnActionEvent e) {
          chkFilter.doClick();
        }
      }.registerCustomShortcutSet(new CustomShortcutSet(shortcuts), myTree);
    }
    chkFilter.setText(text);
    panel.add(chkFilter);
    myCheckBoxes.put(action.getClass(), chkFilter);
  }
示例#30
0
 /**
  * Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
  * call it in your code!
  *
  * @noinspection ALL
  */
 private void $$$setupUI$$$() {
   panelMain = new JPanel();
   panelMain.setLayout(
       new com.intellij.uiDesigner.core.GridLayoutManager(1, 5, new Insets(0, 5, 0, 5), -1, -1));
   checkboxMonitor = new JCheckBox();
   checkboxMonitor.setText("");
   panelMain.add(
       checkboxMonitor,
       new com.intellij.uiDesigner.core.GridConstraints(
           0,
           0,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
           com.intellij.uiDesigner.core.GridConstraints.FILL_NONE,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK
               | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           null,
           null,
           null,
           0,
           false));
   textfieldName = new JTextField();
   panelMain.add(
       textfieldName,
       new com.intellij.uiDesigner.core.GridConstraints(
           0,
           1,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
           com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           null,
           null,
           null,
           0,
           false));
   comboboxType = new JComboBox();
   panelMain.add(
       comboboxType,
       new com.intellij.uiDesigner.core.GridConstraints(
           0,
           2,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
           com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK
               | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           null,
           null,
           null,
           0,
           false));
   final JLabel label1 = new JLabel();
   label1.setText("+/-");
   panelMain.add(
       label1,
       new com.intellij.uiDesigner.core.GridConstraints(
           0,
           3,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
           com.intellij.uiDesigner.core.GridConstraints.FILL_NONE,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           null,
           null,
           null,
           0,
           false));
   textfieldTare = new JFormattedTextField();
   textfieldTare.setColumns(4);
   panelMain.add(
       textfieldTare,
       new com.intellij.uiDesigner.core.GridConstraints(
           0,
           4,
           1,
           1,
           com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
           com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW,
           com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
           null,
           null,
           null,
           0,
           false));
 }