|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.thdl.savant.JdkVersionHacks
Constructor Summary | |
private |
JdkVersionHacks()
Don't instantiate this class. |
Method Summary | |
private static void |
handleSecurityException(SecurityException ex)
Coming soon: Does what the user desires (via the options he or she has set) with this SecurityException, one encountered during the process of reflection. |
private static Object |
maximizedBothOption()
Returns the value of Frame.MAXIMIZED_BOTH, wrapped in an Integer. |
static boolean |
maximizedBothSupported(Toolkit tk)
Returns true iff maximizeJFrameInBothDirections(f) will actually have an effect. |
static boolean |
maximizeJFrameInBothDirections(JFrame f)
Calls f.setExtendedState(Frame.MAXIMIZED_BOTH) if possible. |
static boolean |
undecorateJFrame(JFrame f)
Calls f.setUndecorated(true) if possible. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private JdkVersionHacks()
Method Detail |
public static boolean undecorateJFrame(JFrame f)
public static boolean maximizeJFrameInBothDirections(JFrame f)
public static boolean maximizedBothSupported(Toolkit tk)
private static void handleSecurityException(SecurityException ex) throws SecurityException
SecurityException
private static Object maximizedBothOption() throws NoSuchFieldException
NoSuchFieldException
- the field does not exist or
cannot be accessed because security settings are too limiting
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |