javax.swing.JComboBox.setVisible()方法的使用及代码示例

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

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

JComboBox.setVisible介绍

暂无

代码示例

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

void setSidesVisible(boolean visible)
{
  sideCombo.setVisible(visible);
  sideLabel.setVisible(visible);
}

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

void setSidesVisible(boolean visible)
{
  sideCombo.setVisible(visible);
  sideLabel.setVisible(visible);
}

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

void setEdgesVisible (boolean visible) {
  edgesCheckbox.setVisible(visible);
  edgesLabel.setVisible(visible);
  visible = visible && edgesCheckbox.isSelected();
  sideCombo.setVisible(visible);
  sideLabel.setVisible(visible);
}

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

void setEdgesVisible (boolean visible) {
  edgesCheckbox.setVisible(visible);
  edgesLabel.setVisible(visible);
  visible = visible && edgesCheckbox.isSelected();
  sideCombo.setVisible(visible);
  sideLabel.setVisible(visible);
}

代码示例来源:origin: magefree/mage

public void loadCards(BigCard bigCard) {
    this.bigCard = bigCard;
    this.btnBooster.setVisible(true);
    this.btnClear.setVisible(true);
    this.cbExpansionSet.setVisible(true);
    this.btnExpansionSearch.setVisible(true);
//        cbExpansionSet.setModel(new DefaultComboBoxModel<>(ConstructedFormats.getTypes()));
    // Action event on Expansion set triggers loadCards method
    cbExpansionSet.setSelectedIndex(0);
  }

代码示例来源:origin: magefree/mage

public void loadSideboard(java.util.List<Card> sideboard, BigCard bigCard) {
  this.bigCard = bigCard;
  this.btnBooster.setVisible(false);
  this.btnClear.setVisible(false);
  this.cbExpansionSet.setVisible(false);
  this.btnExpansionSearch.setVisible(false);
  this.limited = true;
  this.cards.clear();
  for (Card card : sideboard) {
    this.cards.add(card);
  }
  filterCards();
}

代码示例来源:origin: magefree/mage

this.cbDeckType.setVisible(!tournamentType.isLimited());
this.lblGameType.setVisible(!tournamentType.isLimited());
this.cbGameType.setVisible(!tournamentType.isLimited());
this.player1Panel.showDeckElements(!tournamentType.isLimited());
  if (tournamentType.isCubeBooster()) {
    this.lblDraftCube.setVisible(true);
    this.cbDraftCube.setVisible(true);
    this.lblPacks.setVisible(false);
    this.pnlPacks.setVisible(false);
  } else if (tournamentType.isRandom() || tournamentType.isRichMan()) {
    this.lblDraftCube.setVisible(false);
    this.cbDraftCube.setVisible(false);
    this.lblPacks.setVisible(true);
    this.pnlRandomPacks.setVisible(true);
  } else {
    this.lblDraftCube.setVisible(false);
    this.cbDraftCube.setVisible(false);
    this.lblPacks.setVisible(true);
    this.pnlPacks.setVisible(true);
  this.cbDraftCube.setVisible(false);
  this.pnlPacks.setVisible(false);
  this.pnlPacks.setVisible(false);

代码示例来源:origin: Slowpoke101/FTBLaunch

/**
 * disables the footer buttons active when the texture pack tab is selected
 */
public void disableTextureButtons () {
  tpInstall.setVisible(false);
  tpInstallLocation.setVisible(false);
}

代码示例来源:origin: com.badlogicgames.gdx/gdx-tools

void setSidesVisible(boolean visible)
{
  sideCombo.setVisible(visible);
  sideLabel.setVisible(visible);
}

代码示例来源:origin: Slowpoke101/FTBLaunch

/**
 * disables the footer buttons active when the modpack tab is selected
 */
public void disableMapButtons () {
  mapInstall.setVisible(false);
  mapInstallLocation.setVisible(false);
  serverMap.setVisible(false);
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-project

public void hideUploadFiles() {
  uploadFilesLabel.setVisible(false);
  uploadFilesComboBox.setVisible(false);
  uploadFilesHintLabel.setVisible(false);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/**
* Enables/disables location.
*/
public final void setEnableLocation (boolean b) {
  cbLocation.setEditable (b);
  cbLocation.setVisible (b);
  cbLabel.setVisible (b);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/**
* Enables/disables location.
*/
public final void setEnableLocation (boolean b) {
  cbLocation.setEditable (b);
  cbLocation.setVisible (b);
  cbLabel.setVisible (b);
}

代码示例来源:origin: Slowpoke101/FTBLaunch

/**
 * disables the buttons that are usually active on the footer
 */
public void disableMainButtons () {
  serverbutton.setVisible(false);
  launch.setVisible(false);
  edit.setVisible(false);
  users.setVisible(false);
}

代码示例来源:origin: protegeproject/protege

public void addMode(ViewMode viewMode) {
  viewModes.add(viewMode);
  viewModeComboBox.setModel(new DefaultComboBoxModel<>(viewModes.toArray(new ViewMode [viewModes.size()])));
  viewModeComboBox.setVisible(!viewModes.isEmpty());
}

代码示例来源:origin: de.dfki.mary/marytts-client

private void verifyExamplesVisible() {
  MaryClient.Voice defaultVoice = (MaryClient.Voice) cbDefaultVoice.getSelectedItem();
  MaryClient.DataType inputType = (MaryClient.DataType) cbInputType.getSelectedItem();
  if (defaultVoice != null && defaultVoice.isLimitedDomain() && inputType.name().startsWith("TEXT")) {
    cbVoiceExampleText.setVisible(true);
  } else {
    cbVoiceExampleText.setVisible(false);
  }
}

代码示例来源:origin: org.trypticon.hex/hex-viewer

private void updateLengthComboBox() {
  InterpreterInfo info = (InterpreterInfo) typeComboBox.getSelectedItem();
  List<LengthOption> values = getLengthOptions(info);
  if (values != null) {
    lengthComboBox.setModel(new DefaultComboBoxModel<>(values.toArray(new LengthOption[values.size()])));
  }
  lengthComboBox.setVisible(values != null);
}

代码示例来源:origin: com.badlogicgames.gdx/gdx-tools

void setEdgesVisible (boolean visible) {
  edgesCheckbox.setVisible(visible);
  edgesLabel.setVisible(visible);
  visible = visible && edgesCheckbox.isSelected();
  sideCombo.setVisible(visible);
  sideLabel.setVisible(visible);
}

代码示例来源:origin: nl.cloudfarming.client/geometry-import

public void hideContainer() {
    containerBox.setVisible(false);
    containerLabel.setVisible(false);
    fileLabel.setVisible(false);
    filePath.setVisible(false);
    browseButton.setVisible(false);
    supportedTypes.setVisible(false);
    supportsLabel.setVisible(false);
    
    noContainerLabel.setVisible(true);
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-spring-beans

private void updateClassPathWarning() {
  boolean alreadyAdded = classPath != null && SpringUtilities.containsSpring(classPath);
  boolean needToAdd = !(alreadyAdded || addSpringToClassPath);
  springNotOnClassPathLabel.setVisible(needToAdd);
  addSpringButton.setVisible(needToAdd);
  cbSpringVersion.setVisible(needToAdd);
  if (needToAdd) {
    initLibraries();
  }
}

相关文章

JComboBox类方法