Results 1 to 1 of 1
Thread: JFrame maximizing
-
JFrame maximizing
Presented below is a JFrame example that shows how to maximize it.
Java Code:public class TestMaxJFrame extends JFrame { public TestMaxJFrame() { GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); /* The next line determines if the taskbar (win) is covered if unremarked, the task will not be covered by the maximized JFRAME. */ // this.setMaximizedBounds(env.getMaximumWindowBounds()); this.setExtendedState(this.getExtendedState() | this.MAXIMIZED_BOTH); } public static void main(String[] args) { JFrame.setDefaultLookAndFeelDecorated(true); TestMaxJFrame t = new TestMaxJFrame(); t.setVisible(true); } }
Similar Threads
-
Add an image to JFrame
By Eranga in forum AWT / SwingReplies: 4Last Post: 02-01-2010, 03:09 PM -
JFrame Question ?
By Mindhunter74 in forum New To JavaReplies: 2Last Post: 12-21-2007, 10:45 PM -
help me with JFrame and JLabel
By michcio in forum New To JavaReplies: 5Last Post: 11-20-2007, 07:44 AM -
JFrame question
By Try2Live4God in forum New To JavaReplies: 2Last Post: 10-15-2007, 01:52 AM -
Help with JFrame
By Albert in forum AWT / SwingReplies: 2Last Post: 07-04-2007, 04:44 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks