javax.swing.JTabbedPane.setEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(11.7k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中javax.swing.JTabbedPane.setEnabled()方法的一些代码示例,展示了JTabbedPane.setEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.setEnabled()方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:setEnabled

JTabbedPane.setEnabled介绍

暂无

代码示例

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction
@Override
public void setEnabled(boolean aValue) {
  super.setEnabled(aValue);
}

代码示例来源:origin: fr.ifremer/isis-fish

@Override
  public void processDataBinding() {
    fieldUseMatrix.setEnabled(getPopInfo() != null);
  }
});

代码示例来源:origin: fr.ifremer/isis-fish

@Override
  public void processDataBinding() {
    parametersTabbedPane.setEnabled(getRegionStorage() != null);
  }
});

代码示例来源:origin: fr.ifremer/isis-fish

@Override
  public void processDataBinding() {
    populationEffectivesTabbedPane.setEnabled(getRegionStorage() != null);
  }
});

代码示例来源:origin: coova/jradius

/**
 * This method initializes mainTabPane
 * 
 * @return javax.swing.JTabbedPane
 */
private JTabbedPane getMainTabPane() {
  if (mainTabPane == null) {
    mainTabPane = new JTabbedPane();
    mainTabPane.addTab("RADIUS", null, getRADIUSPanel(), null);
    //mainTabPane.addTab("Diameter", null, getDiameterPanel(), null);
    //mainTabPane.addTab("DHCP", null, getDHCPPanel(), null);
    mainTabPane.addTab("Attributes", null, getAttributesPanel(), null);
    mainTabPane.addTab("Keys", null, getKeysPanel(), null);
    mainTabPane.addTab("Log", null, getLogPanel(), null);
    mainTabPane.setEnabled(false);
  }
  return mainTabPane;
}

代码示例来源:origin: net.jradius/jradius-extended

/**
 * This method initializes mainTabPane
 * 
 * @return javax.swing.JTabbedPane
 */
private JTabbedPane getMainTabPane() {
  if (mainTabPane == null) {
    mainTabPane = new JTabbedPane();
    mainTabPane.addTab("RADIUS", null, getRADIUSPanel(), null);
    //mainTabPane.addTab("Diameter", null, getDiameterPanel(), null);
    //mainTabPane.addTab("DHCP", null, getDHCPPanel(), null);
    mainTabPane.addTab("Attributes", null, getAttributesPanel(), null);
    mainTabPane.addTab("Keys", null, getKeysPanel(), null);
    mainTabPane.addTab("Log", null, getLogPanel(), null);
    mainTabPane.setEnabled(false);
  }
  return mainTabPane;
}

代码示例来源:origin: com.hynnet/jradius-extended

/**
 * This method initializes mainTabPane
 * 
 * @return javax.swing.JTabbedPane
 */
private JTabbedPane getMainTabPane() {
  if (mainTabPane == null) {
    mainTabPane = new JTabbedPane();
    mainTabPane.addTab("RADIUS", null, getRADIUSPanel(), null);
    //mainTabPane.addTab("Diameter", null, getDiameterPanel(), null);
    //mainTabPane.addTab("DHCP", null, getDHCPPanel(), null);
    mainTabPane.addTab("Attributes", null, getAttributesPanel(), null);
    mainTabPane.addTab("Keys", null, getKeysPanel(), null);
    mainTabPane.addTab("Log", null, getLogPanel(), null);
    mainTabPane.setEnabled(false);
  }
  return mainTabPane;
}

代码示例来源:origin: org.opentcs/opentcs-plantoverview-panel-loadgenerator

private void updateExplicitOrderElementStates() {
 boolean enabled = explicitOrderSpecButton.isSelected() && !orderGenChkBox.isSelected();
 transportOrderGenPanel.setEnabled(enabled);
 transportOrdersPanel.setEnabled(enabled);
 addToTOTableButton.setEnabled(enabled);
 jTabbedPane1.setEnabled(enabled);
 driveOrdersPanel.setEnabled(enabled);
 propertyPanel.setEnabled(enabled);
 doTable.setEnabled(enabled);
 toTable.setEnabled(enabled);
 openButton.setEnabled(enabled);
 saveButton.setEnabled(enabled);
 boolean transportOrderSelected = enabled && toTable.getSelectedRow() >= 0;
 boolean driveOrderSelected = transportOrderSelected && doTable.getSelectedRow() >= 0;
 boolean propertySelected = transportOrderSelected && propertyTable.getSelectedRow() >= 0;
 // These buttons should only be enabled if an order is selected
 deleteFromTOTableButton.setEnabled(transportOrderSelected);
 addDOButton.setEnabled(transportOrderSelected);
 addPropertyButton.setEnabled(transportOrderSelected);
 deleteFromDOTableButton.setEnabled(driveOrderSelected);
 removePropertyButton.setEnabled(propertySelected);
}

代码示例来源:origin: org.zaproxy/zap

private void useClientCertificateCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_useClientCertificateCheckBoxActionPerformed
  // The enable unsafe SSL renegotiation checkbox is independent of using a client certificate (although commonly related)
  // enableUnsafeSSLRenegotiationCheckBox.setEnabled(useClientCertificateCheckBox.isSelected());
  //keyStore tab
  certificatejTabbedPane.setEnabled(useClientCertificateCheckBox.isSelected() );
  keyStoreScrollPane.setEnabled(useClientCertificateCheckBox.isSelected());
  keyStoreList.setEnabled(useClientCertificateCheckBox.isSelected());
  aliasScrollPane.setEnabled(useClientCertificateCheckBox.isSelected());
  aliasTable.setEnabled(useClientCertificateCheckBox.isSelected());
  deleteButton.setEnabled(useClientCertificateCheckBox.isSelected() );
  setActiveButton.setEnabled(useClientCertificateCheckBox.isSelected() );
  showAliasButton.setEnabled(useClientCertificateCheckBox.isSelected() );
  //pkcs12 tab
  fileTextField.setEnabled(useClientCertificateCheckBox.isSelected() );
  browseButton.setEnabled(useClientCertificateCheckBox.isSelected() );
  pkcs12PasswordField.setEnabled(useClientCertificateCheckBox.isSelected() );
  addPkcs12Button.setEnabled(useClientCertificateCheckBox.isSelected() );
  //pkcs11 tab
  driverComboBox.setEnabled(useClientCertificateCheckBox.isSelected() );
  driverButton.setEnabled(useClientCertificateCheckBox.isSelected() );
  pkcs11PasswordField.setEnabled(useClientCertificateCheckBox.isSelected() );
  addPkcs11Button.setEnabled(useClientCertificateCheckBox.isSelected() );
  usePkcs11ExperimentalSliSupportCheckBox.setEnabled(useClientCertificateCheckBox.isSelected());
  usePkcs11ExperimentalSliSupportCheckBox.setSelected(Model.getSingleton().getOptionsParam().getExperimentalFeaturesParam().isExerimentalSliSupportEnabled());
  //actual certificate fields
  certificateTextField.setEnabled(useClientCertificateCheckBox.isSelected() );
  showActiveCertificateButton.setEnabled(useClientCertificateCheckBox.isSelected() );
}//GEN-LAST:event_useClientCertificateCheckBoxActionPerformed

代码示例来源:origin: openpnp/openpnp

stopJobAction.setEnabled(false);
stepJobAction.setEnabled(true);
tabbedPane.setEnabled(true);
stopJobAction.setEnabled(true);
stepJobAction.setEnabled(false);
tabbedPane.setEnabled(false);
stopJobAction.setEnabled(true);
stepJobAction.setEnabled(true);
tabbedPane.setEnabled(false);

代码示例来源:origin: dsukhoroslov/bagri

@Override
public void setEnabled(boolean enabled) {
  super.setEnabled(enabled);
  if (!enabled) {
    grid.clearSelection();
    grid.getTableHeader().setEnabled(false);
    grid.setEnabled(false);
    for (Component c : tabbedPane.getComponents()) {
      c.setEnabled(false);
    }
    tabbedPane.setEnabled(false);
  }
}

代码示例来源:origin: dsukhoroslov/bagri

@Override
public void setEnabled(boolean enabled) {
  super.setEnabled(enabled);
  if (!enabled) {
    grid.clearSelection();
    grid.getTableHeader().setEnabled(false);
    grid.setEnabled(false);
    for (Component c : toolBar.getComponents()) {
      c.setEnabled(false);
    }
    toolBar.setEnabled(false);
    for (Component c : tabbedPane.getComponents()) {
      c.setEnabled(false);
    }
    tabbedPane.setEnabled(false);
  }
}

代码示例来源:origin: coova/jradius

/**
 * This method initializes this
 * 
 * @return void
 */
private void initialize() {
  this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  this.setJMenuBar(getJJMenuBar());
  this.setSize(650, 600);
  this.setContentPane(getMainContentPane());
  this.setTitle("JRadiusSimulator");
  this.setVisible(true);
  
  String osName = System.getProperty("os.name");
  if  (osName.indexOf("Windows") != -1) windows = true;
  else windows = false;
  logSent = new PrintStream(logConsole.createFilteredStream(LogConsole.CATEGORY_PACKETS_SENT));
  logRecv = new PrintStream(logConsole.createFilteredStream(LogConsole.CATEGORY_PACKETS_RECV));
  logErr = new PrintStream(logConsole.createFilteredStream(LogConsole.CATEGORY_ERROR));
  AttributeFactory.loadAttributeDictionary("net.jradius.dictionary.AttributeDictionaryImpl");
  try { loadConfigFile(configFileUrl); } catch (Exception e) { e.printStackTrace(); }
  statusLabel.setText("Ready");
  fileMenu.setEnabled(true);
  mainTabPane.setEnabled(true);
  runButton.setEnabled(true);
}

代码示例来源:origin: dsukhoroslov/bagri

@Override
public void setEnabled(boolean enabled) {
  super.setEnabled(enabled);
  if (!enabled) {
    optionsGrid.clearSelection();
    optionsGrid.getTableHeader().setEnabled(false);
    optionsGrid.setEnabled(false);
    for (Component c : toolBar.getComponents()) {
      c.setEnabled(false);
    }
    toolBar.setEnabled(false);
    for (Component c : tabbedPane.getComponents()) {
      c.setEnabled(false);
    }
    tabbedPane.setEnabled(false);
  }
}

代码示例来源:origin: dsukhoroslov/bagri

@Override
public void setEnabled(boolean enabled) {
  super.setEnabled(enabled);
  if (!enabled) {
    grid.clearSelection();
    grid.getTableHeader().setEnabled(false);
    grid.setEnabled(false);
    for (Component c : toolBar.getComponents()) {
      c.setEnabled(false);
    }
    toolBar.setEnabled(false);
    for (Component c : tabbedPane.getComponents()) {
      c.setEnabled(false);
    }
    tabbedPane.setEnabled(false);
  }
}

代码示例来源:origin: com.hynnet/jradius-extended

/**
 * This method initializes this
 * 
 * @return void
 */
private void initialize() {
  this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  this.setJMenuBar(getJJMenuBar());
  this.setSize(650, 600);
  this.setContentPane(getMainContentPane());
  this.setTitle("JRadiusSimulator");
  this.setVisible(true);
  
  String osName = System.getProperty("os.name");
  if  (osName.indexOf("Windows") != -1) windows = true;
  else windows = false;
  logSent = new PrintStream(logConsole.createFilteredStream(LogConsole.CATEGORY_PACKETS_SENT));
  logRecv = new PrintStream(logConsole.createFilteredStream(LogConsole.CATEGORY_PACKETS_RECV));
  logErr = new PrintStream(logConsole.createFilteredStream(LogConsole.CATEGORY_ERROR));
  AttributeFactory.loadAttributeDictionary("net.jradius.dictionary.AttributeDictionaryImpl");
  try { loadConfigFile(configFileUrl); } catch (Exception e) { e.printStackTrace(); }
  statusLabel.setText("Ready");
  fileMenu.setEnabled(true);
  mainTabPane.setEnabled(true);
  runButton.setEnabled(true);
}

代码示例来源:origin: net.jradius/jradius-extended

/**
 * This method initializes this
 * 
 * @return void
 */
private void initialize() {
  this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  this.setJMenuBar(getJJMenuBar());
  this.setSize(650, 600);
  this.setContentPane(getMainContentPane());
  this.setTitle("JRadiusSimulator");
  this.setVisible(true);
  
  String osName = System.getProperty("os.name");
  if  (osName.indexOf("Windows") != -1) windows = true;
  else windows = false;
  logSent = new PrintStream(logConsole.createFilteredStream(LogConsole.CATEGORY_PACKETS_SENT));
  logRecv = new PrintStream(logConsole.createFilteredStream(LogConsole.CATEGORY_PACKETS_RECV));
  logErr = new PrintStream(logConsole.createFilteredStream(LogConsole.CATEGORY_ERROR));
  AttributeFactory.loadAttributeDictionary("net.jradius.dictionary.AttributeDictionaryImpl");
  try { loadConfigFile(configFileUrl); } catch (Exception e) { e.printStackTrace(); }
  statusLabel.setText("Ready");
  fileMenu.setEnabled(true);
  mainTabPane.setEnabled(true);
  runButton.setEnabled(true);
}

代码示例来源:origin: RUB-NDS/BurpSSOExtension

burpEditor.setEditable(false);
  sourceViewer.setText(null, null);
  guiContainer.setEnabled(false);
} else {
  guiContainer.setEnabled(true);

代码示例来源:origin: RUB-NDS/BurpSSOExtension

sourceViewerPayload.setText(null, null);
  sourceViewerSignature.setText(null, null);
  editor.setEnabled(false);
} else {
  editor.setEnabled(true);

代码示例来源:origin: dsukhoroslov/bagri

@Override
public void setEnabled(boolean enabled) {
  super.setEnabled(enabled);
  if (!enabled) {
    schemasGrid.clearSelection();
    schemasGrid.getTableHeader().setEnabled(false);
    schemasGrid.setEnabled(false);
    for (Component c : schemasToolBar.getComponents()) {
      c.setEnabled(false);
    }
    schemasToolBar.setEnabled(false);
    for (Component c : tabbedPane.getComponents()) {
      c.setEnabled(false);
    }
    propsGrid.clearSelection();
    propsGrid.getTableHeader().setEnabled(false);
    propsGrid.setEnabled(false);
    for (Component c : propsToolBar.getComponents()) {
      c.setEnabled(false);
    }
    propsToolBar.setEnabled(false);
    for (Component c : tabbedPane.getComponents()) {
      c.setEnabled(false);
    }
    tabbedPane.setEnabled(false);
  }
}

相关文章

JTabbedPane类方法