Skip to main content
gamedev.net
🔒 Locked

[java] Auto Maximizing a JFrame

Started by Mulligan 2 replies 750+ views
Original Post
Mulligan
Mulligan
How do I get a JFrame to be automatically maximized when it is displayed?
GKW
GKW
jFrame1.setSize( Toolkit.getDefaultToolkit().getScreenSize() )

"... we should have such an empire for liberty as she has never surveyed since the creation ..."
Thomas Jefferson
"... we should have such an empire for liberty as she has never surveyed since the creation ..."Thomas Jefferson
WayfarerX
WayfarerX
Also, if you''re woking in Java 1.4, you can use jFrame1.setExtendedState(Frame.MAXIMIZED_BOTH);
"There is no reason good should not triumph at least as often as evil. The triumph of anything is a matter of organization. If there are such things as angels, I hope that they're organized along the lines of the mafia." -Kurt Vonnegut
Mulligan
Mulligan
I''ll try tose ideas, thanks!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.