|
TrueZIP 6.8.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.schlichtherle.awt.Windows
public class Windows
A utility class for window management. You cannot instantiate this class.
| Method Summary | |
|---|---|
static Window |
getLastFocusedWindow()
Returns the last window which received the focus. |
static Window |
getParentWindow()
Returns a suitable parent window, which is the last explicitly set and still showing parent window or any of its showing parent windows, the last focused and still showing window or any of its showing parent windows or any other showing window - whichever is found first. |
static void |
setParentWindow(Window w)
Deprecated. You shouldn't use this method any more, but rely on the implementation in getParentWindow(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Window getParentWindow()
JOptionPane's root frame is
returned.
public static void setParentWindow(Window w)
getParentWindow().
public static Window getLastFocusedWindow()
null is returned instead.
Note that this is not the same as
Windows.getCurrentKeyboardFocusManager().getFocusedWindow():
The latter may return null if no window in this JVM has
the focus, while this method will return the last window in this JVM
which had the focus (unless this is also the first call to this method).
|
TrueZIP 6.8.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||