本文整理了Java中javax.swing.JFrame.getState()
方法的一些代码示例,展示了JFrame.getState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFrame.getState()
方法的具体详情如下:
包路径:javax.swing.JFrame
类名称:JFrame
方法名:getState
暂无
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf
/**
* Gets the Icon attribute of the SkinWindowWindow object
*
* @return The Icon value
*/
public boolean isIcon() {
boolean toreturn = false;
if (frame != null) toreturn = frame.getState() == Frame.ICONIFIED;
return toreturn;
}
代码示例来源:origin: stackoverflow.com
@Override
protected void resizeAndRepaint()
{
JFrame window = (JFrame) SwingUtilities.getAncestorOfClass(JFrame.class, this);
if(window != null && window.getState() != JFrame.ICONIFIED)
{
super.resizeAndRepaint();
}
}
代码示例来源:origin: stackoverflow.com
@Override
public void windowClosing(WindowEvent e) {
JFrame f = (JFrame) e.getWindow();
if (f.getState() != JFrame.ICONIFIED)
f.setState(JFrame.ICONIFIED);
else
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
代码示例来源:origin: GoldenGnu/jeveassets
private void setValuesFromSettings() {
jWidth.setText(String.valueOf(program.getMainWindow().getFrame().getSize().width));
jHeight.setText(String.valueOf(program.getMainWindow().getFrame().getSize().height));
jX.setText(String.valueOf(fixValue(program.getMainWindow().getFrame().getLocation().x)));
jY.setText(String.valueOf(fixValue(program.getMainWindow().getFrame().getLocation().y)));
jMaximized.setSelected(program.getMainWindow().getFrame().getState() == JFrame.MAXIMIZED_BOTH);
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public void relocate()
boolean v=frame_.isVisible()&&((frame_.getState()&Frame.ICONIFIED)==0);
if(v!=isVisible())
内容来源于网络,如有侵权,请联系作者删除!