List of usage examples for java.awt Frame isVisible
@Transient public boolean isVisible()
From source file:dr.app.bss.Utils.java
public static Frame getActiveFrame() { Frame result = null;//from w ww . jav a2s . c o m Frame[] frames = Frame.getFrames(); for (int i = 0; i < frames.length; i++) { Frame frame = frames[i]; if (frame.isVisible()) { result = frame; break; } } return result; }
From source file:org.paxle.desktop.impl.DialogueServices.java
private static void show(final Frame frame) { final int extstate = frame.getExtendedState(); if ((extstate & Frame.ICONIFIED) == Frame.ICONIFIED) frame.setExtendedState(extstate ^ Frame.ICONIFIED); if (!frame.isVisible()) frame.setVisible(true);//from ww w.j ava 2s . co m frame.toFront(); }