javax.swing.JButton.isVisible()方法的使用及代码示例

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

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

JButton.isVisible介绍

暂无

代码示例

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

if (this.btnSpecial.isVisible()) { buttons.add(this.btnSpecial); }
if (this.btnLeft.isVisible()) { buttons.add(this.btnLeft); }
if (this.btnRight.isVisible()) { buttons.add(this.btnRight); }
if (this.btnUndo.isVisible()) { buttons.add(this.btnUndo); }

代码示例来源:origin: net.sf.nachocalendar/nachocalendar

/**
 * Returns the Today button visibility.
 * @return
 */
public boolean getShowToday() {
  return today.isVisible();
}

代码示例来源:origin: net.sf.meka/meka

/**
 * Returns the visibility of the discard button.
 *
 * @return        true if visible
 */
public boolean isDiscardVisible() {
  return m_ButtonDiscard.isVisible();
}

代码示例来源:origin: com.github.waikato/fcms-widgets

/**
 * Returns the visibility of the discard button.
 *
 * @return        true if visible
 */
public boolean isDiscardVisible() {
 return m_ButtonDiscard.isVisible();
}

代码示例来源:origin: com.github.waikato/fcms-widgets

/**
 * Returns the visibility of the cancel button.
 *
 * @return        true if visible
 */
public boolean isCancelVisible() {
 return m_ButtonCancel.isVisible();
}

代码示例来源:origin: net.sf.meka/meka

/**
 * Returns the visibility of the approve button.
 *
 * @return        true if visible
 */
public boolean isApproveVisible() {
  return m_ButtonApprove.isVisible();
}

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

boolean isBotaoFecharVisivel()
  {
    return botaoFechar.isVisible();
  }
}

代码示例来源:origin: robward-scisys/sldeditor

/**
   * Checks if is removes the button visible.
   *
   * @return true, if is removes the button visible
   */
  protected boolean isRemoveButtonVisible() {
    return btnRemoveParameter.isVisible();
  }
}

代码示例来源:origin: akquinet/jbosscc-as7-examples

@Override
public void toggleBetweenCreatableAndDestroyable()
{
  createSfsbButton.setVisible(!createSfsbButton.isVisible());
  destroySfsbButton.setVisible(!destroySfsbButton.isVisible());
  invokeSfsbButton.setVisible(!invokeSfsbButton.isVisible());
  currentSfsbNode.setText("");
  sfsbCounterValue.setText("");
}

代码示例来源:origin: stackoverflow.com

public void actionPerformed(ActionEvent e)
{
JButton jb=(JButton)e.getSource();
   if(jb.isVisible()) 
  jb.setVisible(false);
}

代码示例来源:origin: com.fifesoft.rtext/fife.common

@Override
  public void actionPerformed(ActionEvent e) {
    button.setVisible(!button.isVisible());
    repaint();
  }
}

代码示例来源:origin: org.codeartisans.swing-on-steroids/sos-ui-swing

@Override
public boolean isVisible()
{
  return getJButton().isVisible();
}

代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java15

/**
 * Returns <tt>true</tt> if <code>p</code> occurs within the bounds of the
 * expander button; <tt>false</tt> otherwise.
 */
public boolean isPointOverExpanderButton(Point p) {
  return expanderButton.isVisible() && SwingUtilities.getDeepestComponentAt(this, p.x, p.y) == expanderButton;
}

代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16

/**
 * Returns <tt>true</tt> if <code>p</code> occurs within the bounds of the
 * expander button; <tt>false</tt> otherwise.
 */
public boolean isPointOverExpanderButton(Point p) {
  return expanderButton.isVisible() && SwingUtilities.getDeepestComponentAt(this, p.x, p.y) == expanderButton;
}

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

public void actionPerformed(ActionEvent evt) {
    if (addButton.isVisible()) {
      if (targetList.getModel().getSize() > 0) {
        targetList.setSelectedIndex(0);
        targetList.requestFocus();
      } else {
        addButton.requestFocus();
      }
      isVisibleTimer.stop();
    }
  }
});

代码示例来源:origin: ru.sbtqa/monte-media

public void setPlayerControlsVisible(boolean b) {
  boolean oldValue = forwardButton.isVisible();
  if (oldValue != b) {
    forwardButton.setVisible(b);
    rewindButton.setVisible(b);
    startButton.setVisible(b);
    slider.setVisible(b);
    spacer.setVisible(!b);
    revalidate();
  }
}

代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-component-fields

private void updateButtonPositions() {
  if (rejectChangesButton.isVisible() && acceptChangesButton.isVisible()) {
    rejectChangesButton.putClientProperty("JButton.segmentPosition", "first");
    acceptChangesButton.putClientProperty("JButton.segmentPosition", "last");
  } else {
    rejectChangesButton.putClientProperty("JButton.segmentPosition", "only");
    acceptChangesButton.putClientProperty("JButton.segmentPosition", "only");
  }
}

代码示例来源:origin: AndreasFagschlunger/O2Xfs

public void keyPressed(final VirtualKey key) {
  if (button.isVisible() && isActiveKey(key)) {
    button.doClick();
  }
}

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void appYamlEditButton_hiddenWhenNoAppYamlSelected() {
 configuration.setModuleName(null);
 editor.resetEditorFrom(configuration);
 assertThat(editor.getEditAppYamlButton().isVisible()).isFalse();
}

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

@Test
public void appYamlEditButton_visibleWhenAppYamlSelected() {
 configuration.setModuleName(javaModule.getName());
 editor.resetEditorFrom(configuration);
 assertThat(editor.getEditAppYamlButton().isVisible()).isTrue();
}

相关文章

JButton类方法