本文整理了Java中javax.swing.JFrame.getFrames()
方法的一些代码示例,展示了JFrame.getFrames()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFrame.getFrames()
方法的具体详情如下:
包路径:javax.swing.JFrame
类名称:JFrame
方法名:getFrames
暂无
代码示例来源:origin: igvteam/igv
private Frame findActiveFrame() {
Frame[] frames = JFrame.getFrames();
for (int i = 0; i < frames.length; i++) {
if (frames[i].isVisible()) {
return frames[i];
}
}
return null;
}
}
代码示例来源:origin: otros-systems/otroslogviewer
@Override
protected void actionPerformedHook(ActionEvent e) {
setDefaultSize(fontSize);
Arrays.asList(JFrame.getFrames()).forEach(SwingUtilities::updateComponentTreeUI);
}
代码示例来源:origin: zolyfarkas/spf4j
@Nullable
private static Frame findActiveFrame() {
Frame[] frames = JFrame.getFrames();
for (Frame frame : frames) {
if (frame.isVisible()) {
return frame;
}
}
return null;
}
代码示例来源:origin: kabutz/javaspecialists
/**
* We look for an active frame and attach ourselves to that.
*/
private Frame findActiveOrVisibleFrame() {
Frame[] frames = JFrame.getFrames();
for (Frame frame : frames) {
if (frame.isActive()) {
return frame;
}
}
for (Frame frame : frames) {
if (frame.isVisible()) {
return frame;
}
}
return null;
}
}
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2
/**
* We look for an active frame and attach ourselves to that.
*/
private Frame findActiveOrVisibleFrame() {
Frame[] frames = JFrame.getFrames();
for (Frame frame : frames) {
if (frame.isActive()) {
return frame;
}
}
for (Frame frame : frames) {
if (frame.isVisible()) {
return frame;
}
}
return null;
}
}
代码示例来源:origin: net.java.abeille/abeille
Frame[] frames = JFrame.getFrames();
for (int k = 0; k < frames.length; k++) {
if (!(frames[k] instanceof JFrame))
代码示例来源:origin: org.ihtsdo/wb-api
FileContent fileContent = (FileContent) attachment;
Frame frame = new JFrame();
for (Frame f: JFrame.getFrames()) {
if (f.isActive()) {
frame = f;
内容来源于网络,如有侵权,请联系作者删除!