There are multiple ways but I recommend these lines of code:
GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment();
Frame fr= new Frame();
fr.setMaximizedBounds(e.getMaximumWindowBounds());
fr.setExtendedState(main.getExtendedState() | JFrame.MAXIMIZED_BOTH);
fr.setVisible(true);
The code above will maximize your frame/window without hiding the taskbar (at the bottom part) in your screen except if you used undecorated frame. Any maximizing will hide your taskbar. This is according to my own experience but if you found ways to against it, please post it as a comment. Thanks :)
Showing posts with label close window. Show all posts
Showing posts with label close window. Show all posts
Wednesday, May 4, 2011
Sunday, November 22, 2009
JFREECHART CLOSING APPLICATIONFRAME
-
Using JFreeChart?? Have problems in closing the APPLICATIONFRAME????
CLICK HERE.
-
Using JFreeChart?? Have problems in closing the APPLICATIONFRAME????
CLICK HERE.
-
Labels:
applicationframe,
close,
close window,
dispose,
jfreechart,
not close application,
override

