javax.swing.JFrame.isActive()方法的使用及代码示例

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

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

JFrame.isActive介绍

暂无

代码示例

代码示例来源:origin: RipMeApp/ripme

private void toggleTrayClick() {
  if (mainFrame.getExtendedState() == JFrame.ICONIFIED
      || !mainFrame.isActive()
      || !mainFrame.isVisible()) {
    mainFrame.setVisible(true);
    mainFrame.setAlwaysOnTop(true);
    mainFrame.setAlwaysOnTop(false);
    trayMenuMain.setLabel("Hide");
  } else {
    mainFrame.setVisible(false);
    trayMenuMain.setLabel("Show");
  }
}

代码示例来源:origin: RipMeApp/ripme

Thread t = new Thread(ripper);
if (configShowPopup.isSelected() &&
    (!mainFrame.isVisible() || !mainFrame.isActive())) {
  mainFrame.toFront();
  mainFrame.setAlwaysOnTop(true);

代码示例来源:origin: org.netbeans.api/org-openide-io

public boolean isActivated() {
  if (frame == null) {
    return false;
  }
  return frame.isActive();
}

代码示例来源:origin: sc.fiji/TrakEM2_

protected boolean isActiveWindow() {
  return frame.isActive();
}

代码示例来源:origin: antlr/antlrworks

public boolean isActive() {
  if(useDesktop) {
    return jInternalFrame != null && jInternalFrame.isSelected();
  } else {
    return jFrame.isActive();
  }
}

代码示例来源:origin: org.ihtsdo/wb-api

private void showCycleDialog(String message) {
  JFrame parentFrame = null;
  for (JFrame frame : OpenFrames.getFrames()) {
    if (frame.isActive()) {
      parentFrame = frame;
      break;
    }
  }
  JOptionPane.showMessageDialog(parentFrame, message);
}

代码示例来源:origin: khuxtable/seaglass

/**
 * Determine if the title pane's parent is active.
 *
 * @return {@code true} if the parent is active, {@code false} otherwise.
 */
private boolean isParentSelected() {
  if (rootParent instanceof JFrame) {
    return ((JFrame) rootParent).isActive();
  } else if (rootParent instanceof JDialog) {
    return ((JDialog) rootParent).isActive();
  } else {
    return true;
  }
}

代码示例来源:origin: us.ihmc/IHMCJMonkeyEngineToolkit

private boolean shouldAcceptDeviceInput()
{
 if (alreadyClosing || graphics3dAdapter.getContextManager().getCurrentViewport() != viewportAdapter)
   return false;
 
 if (jFrame != null && !jFrame.isActive())
   return false;
 
 return true;
}

代码示例来源:origin: us.ihmc/ihmc-jmonkey-engine-toolkit

private boolean shouldAcceptDeviceInput()
{
 if (alreadyClosing || graphics3dAdapter.getContextManager().getCurrentViewport() != viewportAdapter)
   return false;
 
 if (jFrame != null && !jFrame.isActive())
   return false;
 
 return true;
}

代码示例来源:origin: net.java.abeille/abeille

if (m_properties_frame.isActive() && m_properties_frame.isVisible()) {
  m_properties_frame.setVisible(false);

相关文章

JFrame类方法