Java Code Examples for javax.swing.JFrame.getExtendedState()

The following are Jave code examples for showing how to use getExtendedState() of the javax.swing.JFrame class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: JavaGraph   File: UserSettings.java   View Source Code Vote up 4 votes
private static boolean isFrameMaximized(JFrame frame) {
    return frame.getExtendedState() == Frame.MAXIMIZED_BOTH;
}
 
Example 2
Project: Luyten4Forge   File: WindowPosition.java   View Source Code Vote up 4 votes
public void readPositionFromWindow(JFrame window) {
	isFullScreen = (window.getExtendedState() == JFrame.MAXIMIZED_BOTH);
	if (!isFullScreen) {
		this.readPositionFromComponent(window);
	}
}