@Override
 public void profileSelectionChanged(final Optional<MutableProfile> profile) {
   okButton.setEnabled(model.isSaveAllowed());
   deleteProfile.setEnabled(model.getSelectedProfile().isPresent());
   if (profile.isPresent()) {
     final int index = profilesModel.indexOf(profile.get());
     selectionModel.setLeadSelectionIndex(index);
   } else {
     selectionModel.setLeadSelectionIndex(-1);
   }
   addNickname.setEnabled(model.getSelectedProfile().isPresent());
   editNickname.setEnabled(model.getSelectedProfile().isPresent());
   addHighlight.setEnabled(model.getSelectedProfile().isPresent());
   editHighlight.setEnabled(model.getSelectedProfile().isPresent());
   name.setEnabled(model.getSelectedProfile().isPresent());
   name.setText(model.getSelectedProfileName().orElse(""));
   nicknames.setEnabled(model.getSelectedProfile().isPresent());
   nicknamesModel.clear();
   nicknamesModel.addAll(model.getSelectedProfileNicknames().orElse(Lists.newArrayList()));
   highlights.setEnabled(model.getSelectedProfile().isPresent());
   highlightsModel.clear();
   highlightsModel.addAll(model.getSelectedProfileHighlights().orElse(Lists.newArrayList()));
   realname.setEnabled(model.getSelectedProfile().isPresent());
   realname.setText(model.getSelectedProfileRealname().orElse(""));
   ident.setEnabled(model.getSelectedProfile().isPresent());
   ident.setText(model.getSelectedProfileIdent().orElse(""));
 }
Example #2
0
 private Thread ripAlbum(String urlString) {
   URL url = null;
   try {
     url = new URL(urlString);
   } catch (MalformedURLException e) {
     logger.error("[!] Could not generate URL for '" + urlString + "'", e);
     status("Error: " + e.getMessage());
     return null;
   }
   ripButton.setEnabled(false);
   ripTextfield.setEnabled(false);
   statusProgress.setValue(100);
   openButton.setVisible(false);
   statusLabel.setVisible(true);
   mainFrame.pack();
   try {
     AbstractRipper ripper = AbstractRipper.getRipper(url);
     ripTextfield.setText(ripper.getURL().toExternalForm());
     ripper.setObserver((RipStatusHandler) this);
     Thread t = new Thread(ripper);
     t.start();
     return t;
   } catch (Exception e) {
     logger.error("[!] Error while ripping: " + e.getMessage(), e);
     status("Error: " + e.getMessage());
     ripButton.setEnabled(true);
     ripTextfield.setEnabled(true);
     statusProgress.setValue(0);
     mainFrame.pack();
     return null;
   }
 }
Example #3
0
  private void setComponentsEnabled(boolean enabled) {
    list.setEnabled(enabled);
    process.setEnabled(enabled);
    remove.setEnabled(enabled);
    xres.setEnabled(enabled);
    yres.setEnabled(enabled);
    aspect.setEnabled(enabled);

    boolean b = aspect.isSelected() && enabled;
    colorLabel.setEnabled(b);
    colorBox.setEnabled(b);
    redLabel.setEnabled(b);
    red.setEnabled(b);
    redValue.setEnabled(b);
    greenLabel.setEnabled(b);
    green.setEnabled(b);
    greenValue.setEnabled(b);
    blueLabel.setEnabled(b);
    blue.setEnabled(b);
    blueValue.setEnabled(b);

    format.setEnabled(enabled);
    algorithm.setEnabled(enabled);
    prepend.setEnabled(enabled);
    append.setEnabled(enabled);
    output.setEnabled(enabled);
  }
 /** 입출금 계좌선택시 대출금액 선택 불가 */
 private void setEnableBrowTF(boolean bool) {
   if (bool) {
     accBrowTF.setEnabled(false);
   } else {
     accBrowTF.setEnabled(true);
   }
 }
Example #5
0
  // Mode modification
  public void modeModification() {
    resetCollection();
    loadCollection();
    resetCategorie();
    loadCategorie();
    comboCollection.setEnabled(true);

    textTitre.setVisible(true);
    textTitre.setEnabled(true);
    textTitre.setEditable(true);

    textAnnee.setVisible(true);
    textAnnee.setEnabled(true);
    textAnnee.setEditable(true);

    comboType.setVisible(true);
    comboType.setEnabled(true);

    comboEval.setVisible(true);
    comboEval.setEnabled(true);

    scrollCom.setEnabled(true);
    scrollCat.setEnabled(true);

    textCommentaires.setEnabled(true);
    textCommentaires.setEditable(true);
    textCommentaires.setBackground(Color.WHITE);
    textCommentaires.setText("");

    textCategories.setEnabled(true);
    textCategories.setEditable(false);
    textCategories.setBackground(GRIS);
    textCategories.setText("");

    for (int i = 0; i < infos_film.length; i++) {
      infos_film[i].setVisible(false);
    }

    for (int k = 0; k < modeButton.length; k++) {
      modeButton[k].setEnabled(false);
      modeButton[k].setVisible(false);
    }

    modeButton[3].setVisible(true); // Boutton Modifier
    modeButton[4].setVisible(true); // Boutton Supprimer
    boolean enabled = true;
    if (listeEstVide()) {
      enabled = false;
    }
    modeButton[3].setEnabled(enabled);
    modeButton[4].setEnabled(enabled);

    optionCategories[0].setEnabled(true); // Boutton ajouter categorie
    optionCategories[1].setEnabled(true);

    // Place the first element of combobox in the grid
    comboCollection.setSelectedIndex(0);
    Video video = this.obtenirVideo(comboCollection.getSelectedItem().toString());
    afficherFilmChoisis(video.getTitre());
  }
  /**
   * Closes dialog box when the OK button is pressed, sets variables and calls algorithm.
   *
   * @param event Event that triggers function.
   */
  public void actionPerformed(ActionEvent event) {
    String command = event.getActionCommand();
    Object source = event.getSource();

    if (command.equals("OK")) {

      if (setVariables()) {
        callAlgorithm();
      }
    } else if (command.equals("Cancel")) {
      dispose();
    } else if (command.equals("Help")) {
      // MipavUtil.showHelp("");
    } else if (source.equals(doRicianCheckBox)) {
      if (doRicianCheckBox.isSelected()) {
        labelDegree.setEnabled(true);
        textDegree.setEnabled(true);
      } else {
        labelDegree.setEnabled(false);
        textDegree.setEnabled(false);
      }
    } else { // else if (source == thresholdCheckbox)
      super.actionPerformed(event);
    }
  }
 private void refreshSelection(int choice) {
   if (choice == POINT_PRIX) {
     pointsPrix.setSelected(true);
     prixParPoint.setEditable(true);
     prixParPoint.setEnabled(true);
     pointsService.setSelected(false);
     pointsParAutre.setEditable(false);
     pointsParAutre.setEnabled(false);
     pointsParCoiffure.setEditable(false);
     pointsParCoiffure.setEnabled(false);
     pointsParCoupe.setEditable(false);
     pointsParCoupe.setEnabled(false);
     pointsParCouleur.setEditable(false);
     pointsParCouleur.setEnabled(false);
   } else if (choice == POINT_SERVICE) {
     pointsPrix.setSelected(false);
     prixParPoint.setEditable(false);
     prixParPoint.setEnabled(false);
     pointsService.setSelected(true);
     pointsParAutre.setEditable(true);
     pointsParAutre.setEnabled(true);
     pointsParCoiffure.setEditable(true);
     pointsParCoiffure.setEnabled(true);
     pointsParCoupe.setEditable(true);
     pointsParCoupe.setEnabled(true);
     pointsParCouleur.setEditable(true);
     pointsParCouleur.setEnabled(true);
   }
 }
Example #8
0
 public void habilitarCampos(boolean value) {
   tfClave.setEnabled(value);
   tfMarca.setEnabled(value);
   tfNombre.setEnabled(value);
   tfExistencia.setEnabled(value);
   tfPrecio.setEnabled(value);
 }
  @Override
  public void updateOptionsList() {
    myIsInSchemeChange = true;

    myLineSpacingField.setText(Float.toString(getLineSpacing()));
    FontPreferences fontPreferences = getFontPreferences();
    List<String> fontFamilies = fontPreferences.getEffectiveFontFamilies();
    myPrimaryCombo.setFontName(fontPreferences.getFontFamily());
    boolean isThereSecondaryFont = fontFamilies.size() > 1;
    myUseSecondaryFontCheckbox.setSelected(isThereSecondaryFont);
    mySecondaryCombo.setFontName(isThereSecondaryFont ? fontFamilies.get(1) : null);
    myEditorFontSizeField.setText(
        String.valueOf(fontPreferences.getSize(fontPreferences.getFontFamily())));

    boolean readOnly = ColorAndFontOptions.isReadOnly(myOptions.getSelectedScheme());
    myPrimaryCombo.setEnabled(!readOnly);
    mySecondaryCombo.setEnabled(isThereSecondaryFont && !readOnly);
    myOnlyMonospacedCheckBox.setEnabled(!readOnly);
    myLineSpacingField.setEnabled(!readOnly);
    myEditorFontSizeField.setEnabled(!readOnly);
    myUseSecondaryFontCheckbox.setEnabled(!readOnly);

    myEnableLigaturesCheckbox.setEnabled(!readOnly);
    myLigaturesInfoLinkLabel.setEnabled(!readOnly);
    myEnableLigaturesCheckbox.setSelected(fontPreferences.useLigatures());

    myIsInSchemeChange = false;
  }
  /*
   * The state of one of the following items has changed:
   * 1. bUseFTPCheckB check box: Enable or disable FTP setting fields given the state of the "Use FTP" checkbox
   * 2. autoFlushRB radio button: Enable or disable the Flush interval combo box
   */
  @Override
  public void itemStateChanged(ItemEvent eventI) {

    Object source = eventI.getSource();

    if (source == null) {
      return;
    } else if (source == bUseFTPCheckB) {
      boolean bChecked = bUseFTPCheckB.isSelected();
      ftpHostLabel.setEnabled(bChecked);
      ftpHostTF.setEnabled(bChecked);
      ftpUserLabel.setEnabled(bChecked);
      ftpUserTF.setEnabled(bChecked);
      ftpPasswordLabel.setEnabled(bChecked);
      ftpPasswordTF.setEnabled(bChecked);
    } else if (source == autoFlushRB) {
      if (autoFlushRB.isSelected()) {
        flushIntervalLabel.setEnabled(true);
        flushIntervalComboB.setEnabled(true);
      } else {
        flushIntervalLabel.setEnabled(false);
        flushIntervalComboB.setEnabled(false);
      }
    }
  }
  /** Updates the information displayed in the fields. */
  public void update() {
    super.update(); // update the common fields

    InteractiveEntity interactiveEntity = (InteractiveEntity) entity;
    String sprite = interactiveEntity.getProperty("sprite");
    String behavior = interactiveEntity.getProperty("behavior");
    EntitySubtype subtype = interactiveEntity.getSubtype();

    boolean hasSprite = (!sprite.equals("_none"));

    withSpriteField.setSelected(hasSprite);
    spriteField.setSelectedId(hasSprite ? sprite : "");

    spriteField.setEnabled(hasSprite);

    if (behavior.equals("map")) {
      behaviorField.setSelectedIndex(1);
      messageField.setEnabled(false);
      itemField.setEnabled(false);
    } else if (behavior.substring(0, 5).equals("item#")) {
      behaviorField.setSelectedIndex(2);
      messageField.setEnabled(false);
      itemField.setEnabled(true);
      itemField.setSelectedId(behavior.substring(5));
    } else if (behavior.substring(0, 7).equals("dialog#")) {
      behaviorField.setSelectedIndex(0);
      messageField.setEnabled(true);
      itemField.setEnabled(false);
      messageField.setText(behavior.substring(7));
    }
  }
  private void initDialog(final DesignTimeContext designTimeContext) {
    if (designTimeContext == null) {
      throw new NullPointerException();
    }

    this.designTimeContext = designTimeContext;

    editParameterAction = new EditParameterAction();
    editParameterAction.setEnabled(false);

    queryListModel = new DefaultListModel();

    queryNameList = new JList(queryListModel);
    queryNameList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    queryNameList.setVisibleRowCount(5);
    queryNameList.addListSelectionListener(new QueryNameListSelectionListener());

    fileTextField = new JTextField(30);
    fileTextField.setEnabled(false);
    fileTextField.getDocument().addDocumentListener(new FileSyncHandler());

    stepsList = new JList();
    stepsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    stepsList.addListSelectionListener(new StepsListListener());

    nameTextField = new JTextField(30);
    nameTextField.setEnabled(false);
    nameTextField.getDocument().addDocumentListener(new NameSyncHandler());

    setTitle(Messages.getString("KettleDataSourceDialog.Title"));
    setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
    setModal(true);

    super.init();
  }
 /** Enables or disables the 'other' separator text field. */
 protected void performSeparatorSelection() {
   if (rbSeparatorOther.isSelected()) {
     txSeparatorOther.setEnabled(true);
   } else {
     txSeparatorOther.setEnabled(false);
   }
 }
Example #14
0
  private void onBatch() {
    final boolean b = useBatchInputCheckbox.isSelected();

    orientationComboBox.setEnabled(b);
    lengthField.setEnabled(b);
    dpiXField.setEnabled(b);
    dpiYField.setEnabled(b);
    startDepthField.setEnabled(b);
    depthIncField.setEnabled(b);
    applyToAllButton.setEnabled(b);
    applyToSelectedButton.setEnabled(b);

    if (!b) {
      orientationLabel.setEnabled(b);
      lengthLabel.setEnabled(b);
      dpiXLabel.setEnabled(b);
      dpiYLabel.setEnabled(b);
      startDepthLabel.setEnabled(b);
      depthIncLabel.setEnabled(b);
    } else {
      orientationLabel.setEnabled(orientationComboBox.getSelectedIndex() != 2); // [Blank]
      lengthLabel.setEnabled(!lengthField.getText().equals(""));
      dpiXLabel.setEnabled(!dpiXField.getText().equals(""));
      dpiYLabel.setEnabled(!dpiYField.getText().equals(""));
      startDepthLabel.setEnabled(!startDepthField.getText().equals(""));
      depthIncLabel.setEnabled(!depthIncField.getText().equals(""));
    }
  }
  /**
   * Closes dialog box when the OK button is pressed and calls the algorithm.
   *
   * @param event Event that triggers function.
   */
  public void actionPerformed(ActionEvent event) {
    String command = event.getActionCommand();
    Object source = event.getSource();

    if (command.equals("OK")) {

      if (setVariables()) {
        callAlgorithm();
      }
    } else if (command.equals("Script")) {
      callAlgorithm();
    } else if (command.equals("Cancel")) {
      dispose();
    } else if (source == blueSmoothBox) {
      if (blueSmoothBox.isSelected()) {
        interpolationLabel.setEnabled(true);
        interpolationText.setEnabled(true);
      } else {
        interpolationLabel.setEnabled(false);
        interpolationText.setEnabled(false);
      }
    } else {
      super.actionPerformed(event);
    }
  }
Example #16
0
 public void jTextFalse() { // Desabilita os campos JText
   // jT_Registro.setEnabled(false);
   jTCRM.setEnabled(false);
   jTnome.setEnabled(false);
   jTtipo.setEnabled(false);
   jTEmail.setEnabled(false);
   jTSenha.setEnabled(false);
 }
Example #17
0
  // Mode ajout
  public void modeAjout() {
    resetCollection();
    loadCollection();
    resetCategorie();
    loadCategorie();
    comboCollection.setEnabled(false);

    textTitre.setVisible(true);
    textTitre.setEnabled(true);
    textTitre.setEditable(true);
    textTitre.setText("");
    textTitre.requestFocusInWindow();

    textAnnee.setVisible(true);
    textAnnee.setEnabled(true);
    textAnnee.setEditable(true);
    textAnnee.setText("");

    comboType.setVisible(true);
    comboType.setEnabled(true);
    comboType.setSelectedIndex(1);

    comboEval.setVisible(true);
    comboEval.setEnabled(true);
    comboEval.setSelectedIndex(0);

    // Juste au cas que ca foire
    scrollCom.setEnabled(true);
    scrollCat.setEnabled(true);

    textCommentaires.setEnabled(true);
    textCommentaires.setEditable(true);
    textCommentaires.setBackground(Color.WHITE);
    textCommentaires.setText("");

    textCategories.setEnabled(true);
    textCategories.setEditable(false);
    textCategories.setBackground(GRIS);
    textCategories.setText("");

    optionCategories[0].setEnabled(true);
    optionCategories[1].setEnabled(false);

    for (int i = 0; i < infos_film.length; i++) {
      infos_film[i].setVisible(false);
    }

    for (int k = 0; k < modeButton.length; k++) {
      if (k == 2) {
        modeButton[k].setEnabled(true);
        modeButton[k].setVisible(true);
      } else {
        modeButton[k].setEnabled(false);
        modeButton[k].setVisible(false);
      }
    }
  }
 public void Habilitar() {
   barra.setVisible(false);
   barra.setValue(0);
   Etiq.setVisible(false);
   texpresion.setEnabled(true);
   tvariables.setEnabled(true);
   tconstantes.setEnabled(true);
   vectores.setEnabled(true);
 }
Example #19
0
  public void jTextTrue() { // Habilita os campos jText
    // jT_Registro.setEnabled(true);

    jTCRM.setEnabled(true);
    jTnome.setEnabled(true);
    jTtipo.setEnabled(true);
    jTEmail.setEnabled(true);
    jTSenha.setEnabled(true);
  }
Example #20
0
 public void enableChat() {
   openChat.setEnabled(false);
   chatWith.setEnabled(false);
   pickText.setEnabled(false);
   desText.setEnabled(false);
   send.setEnabled(true);
   chatText.setEnabled(true);
   new Thread(this).start();
 }
 /**
  * DOCUMENT ME!
  *
  * @param flurstueck DOCUMENT ME!
  */
 public void lockFlurstueckCbo(final boolean flurstueck) {
   if (flurstueck) {
     txtFlurstueck.setEnabled(false);
     txtFlurstueck.setText("");
     setHighlightColor(LagisBroker.ACCEPTED_COLOR);
   } else {
     txtFlurstueck.setEnabled(true);
   }
 }
 private void toggleGUIElements(final boolean isEnabled) {
   propertyKeyTextField.setEnabled(isEnabled);
   propertyValueTextField.setEnabled(isEnabled);
   createPropertyServiceComboBox.setEnabled(isEnabled);
   createPropertyButton.setEnabled(isEnabled && isNonEmptyValidator.isValid(propertyKeyTextField));
   viewPropertiesServiceComboBox.setEnabled(isEnabled);
   reloadPropertiesButton.setEnabled(isEnabled);
   propertiesTable.setEnabled(isEnabled);
 }
Example #23
0
  private void updateOtherFileNames(BeautiOptions options) {
    if (options.fileNameStem != null) {
      //            fileNameStemField.setText(options.fileNameStem);

      options.logFileName = options.fileNameStem + ".log";
      if (addTxt.isSelected()) options.logFileName = options.logFileName + ".txt";
      logFileNameField.setText(options.logFileName);

      //            if (options.mapTreeFileName == null) {
      //			    mapTreeFileNameField.setText(options.fileNameStem + ".MAP.tree");
      //            } else {
      //                mapTreeFileNameField.setText(options.mapTreeFileName);
      //            }

      updateTreeFileNameList();
      treeFileNameField.setText(displayTreeList(options.treeFileName));

      if (options.substTreeLog) {
        substTreeFileNameField.setText(displayTreeList(options.substTreeFileName));
      } else {
        substTreeFileNameField.setText("");
      }

      options.operatorAnalysisFileName = options.fileNameStem + ".ops";
      if (addTxt.isSelected()) {
        options.operatorAnalysisFileName = options.operatorAnalysisFileName + ".txt";
      }
      operatorAnalaysisFileNameField.setEnabled(options.operatorAnalysis);
      if (options.operatorAnalysis) {
        operatorAnalaysisFileNameField.setText(options.operatorAnalysisFileName);
      } else {
        operatorAnalaysisFileNameField.setText("");
      }

      //            mapTreeLogCheck.setEnabled(true);
      //            mapTreeLogCheck.setSelected(options.mapTreeLog);
      //            mapTreeFileNameField.setEnabled(options.mapTreeLog);

      substTreeLogCheck.setEnabled(true);
      substTreeLogCheck.setSelected(options.substTreeLog);

    } else {
      //            fileNameStemField.setText(fileNameStem);
      //            fileNameStemField.setEnabled(false);
      logFileNameField.setText(DEFAULT_FILE_NAME_STEM + ".log");
      treeFileNameField.setText(DEFAULT_FILE_NAME_STEM + "." + STARBEASTOptions.TREE_FILE_NAME);
      //            mapTreeLogCheck.setEnabled(false);
      //            mapTreeFileNameField.setEnabled(false);
      //            mapTreeFileNameField.setText("untitled");
      substTreeLogCheck.setSelected(false);
      substTreeFileNameField.setEnabled(false);
      substTreeFileNameField.setText("");
      operatorAnalaysisCheck.setSelected(false);
      operatorAnalaysisFileNameField.setText("");
    }
  }
  protected void _init() {
    ButtonHandler handler = new ButtonHandler();

    // Core
    JPanel corePanel = new JPanel();
    corePanel.setLayout(new BoxLayout(corePanel, BoxLayout.X_AXIS));
    corePanel.add(
        coreIncluded = new JRadioButton(jEdit.getProperty("options.clojure.included-core-label")));
    corePanel.add(coreCustom = new JRadioButton(jEdit.getProperty("options.clojure.choose-label")));
    ButtonGroup coreGroup = new ButtonGroup();
    coreGroup.add(coreIncluded);
    coreGroup.add(coreCustom);
    corePanel.add(new JSeparator(JSeparator.VERTICAL));
    corePanel.add(corePath = new JTextField());
    coreBrowse = new JButton(jEdit.getProperty("vfs.browser.browse.label"));
    coreBrowse.addActionListener(new BrowseHandler(corePath));
    corePanel.add(coreBrowse);
    String core = plugin.getClojureCore();
    if (core.equals(ClojurePlugin.includedCore)) {
      coreIncluded.setSelected(true);
      corePath.setEnabled(false);
      coreBrowse.setEnabled(false);
    } else {
      coreCustom.setSelected(true);
      corePath.setText(core);
    }
    coreIncluded.addActionListener(handler);
    coreCustom.addActionListener(handler);
    addComponent("Core:", corePanel);

    // Contrib
    JPanel contribPanel = new JPanel();
    contribPanel.setLayout(new BoxLayout(contribPanel, BoxLayout.X_AXIS));
    contribPanel.add(contribIncluded = new JRadioButton("Included (1.1.0)"));
    contribPanel.add(contribCustom = new JRadioButton("Choose jar"));
    ButtonGroup contribGroup = new ButtonGroup();
    contribGroup.add(contribIncluded);
    contribGroup.add(contribCustom);
    contribPanel.add(new JSeparator(JSeparator.VERTICAL));
    contribPanel.add(contribPath = new JTextField());
    contribBrowse = new JButton(jEdit.getProperty("vfs.browser.browse.label"));
    contribBrowse.addActionListener(new BrowseHandler(contribPath));
    contribPanel.add(contribBrowse);
    String contrib = plugin.getClojureContrib();
    if (contrib.equals(ClojurePlugin.includedContrib)) {
      contribIncluded.setSelected(true);
      contribPath.setEnabled(false);
      contribBrowse.setEnabled(false);
    } else {
      contribCustom.setSelected(true);
      contribPath.setText(contrib);
    }
    contribIncluded.addActionListener(handler);
    contribCustom.addActionListener(handler);
    addComponent("Contrib:", contribPanel);
  }
Example #25
0
  // Mode recherche
  public void modeRecherche() {
    resetCollection();

    comboCollection.setEnabled(false);

    textTitre.setVisible(true);
    textTitre.setEnabled(true);
    textTitre.setEditable(true);
    textTitre.setText("");
    textTitre.requestFocusInWindow();

    textAnnee.setVisible(true);
    textAnnee.setEnabled(true);
    textAnnee.setEditable(true);
    textAnnee.setText("");

    comboType.setVisible(true);
    comboType.setEnabled(true);
    comboType.setSelectedIndex(0);

    comboEval.setVisible(true);
    comboEval.setEnabled(false);
    // comboEval.setFont();
    comboEval.setSelectedIndex(0);

    textCommentaires.setEnabled(true);
    textCommentaires.setEditable(false);
    textCommentaires.setBackground(GRIS);
    textCommentaires.setText("");

    textCategories.setEnabled(true);
    textCategories.setEditable(false);
    textCategories.setBackground(GRIS);
    textCategories.setText("");

    for (int i = 0; i < infos_film.length; i++) {
      infos_film[i].setVisible(false);
    }

    for (int k = 0; k < modeButton.length; k++) {
      modeButton[k].setEnabled(false);
      modeButton[k].setVisible(false);
    }
    modeButton[5].setVisible(true);
    // modeButton[6].setVisible(true);

    boolean enabled = true;

    if (listeEstVide()) {
      enabled = false;
    }
    optionCategories[0].setEnabled(enabled);
    optionCategories[1].setEnabled(enabled);
    modeButton[5].setEnabled(enabled);
    modeButton[6].setEnabled(true);
  }
 public void setEnabled(boolean enabled) {
   productNameLabel.setEnabled(enabled);
   productNameTextField.setEnabled(enabled);
   saveToFileCheckBox.setEnabled(enabled);
   productDirLabel.setEnabled(enabled);
   productDirTextField.setEnabled(enabled);
   productDirChooserButton.setEnabled(enabled);
   formatNameComboBox.setEnabled(enabled);
   openInAppCheckBox.setEnabled(enabled);
 }
Example #27
0
 /** Update button enable/disable state according enableCheckBox. */
 private void updateButtonsState() {
   sipProtocolCheckBox.setEnabled(enableCheckBox.isSelected());
   jabberProtocolCheckBox.setEnabled(enableCheckBox.isSelected());
   rtpProtocolCheckBox.setEnabled(enableCheckBox.isSelected());
   ice4jProtocolCheckBox.setEnabled(enableCheckBox.isSelected());
   fileCountField.setEnabled(enableCheckBox.isSelected());
   fileSizeField.setEnabled(enableCheckBox.isSelected());
   fileSizeLabel.setEnabled(enableCheckBox.isSelected());
   fileCountLabel.setEnabled(enableCheckBox.isSelected());
 }
  private void Campos0() {

    txtNombres.setEnabled(false);
    txtNombres.setText(null);
    txtApellidos.setEnabled(false);
    txtApellidos.setText(null);
    txtTelefono.setEnabled(false);
    txtTelefono.setText(null);
    txtTelefono.setEnabled(false);
    txtTelefono.setText(null);
  }
Example #29
0
 protected void setBrowsePanelVisable() {
   if (selectButtonGroup.getSelection() == fromRadioButton.getModel()) {
     dirLabel.setEnabled(true);
     dirTextField.setEnabled(true);
     browseButton.setEnabled(true);
   } else {
     dirLabel.setEnabled(false);
     dirTextField.setEnabled(false);
     browseButton.setEnabled(false);
   }
 }
 private void setEditorEnabled(boolean enabled) {
   comTitle.setEnabled(enabled);
   comArtist.setEnabled(enabled);
   comAlbum.setEnabled(enabled);
   txtTracknumber.setEnabled(enabled);
   txtTotalTracks.setEnabled(enabled);
   //		txtDiscnumber.setEnabled(enabled);
   //		txtTotalDiscs.setEnabled(enabled);
   txtYear.setEnabled(enabled);
   comGenre.setEnabled(enabled);
   imgArtwork.setEnabled(enabled);
 }