how to adjust JFrame and JInternal frames with any screen size?
Posted
by
Zakaria Marrah
on Stack Overflow
See other posts from Stack Overflow
or by Zakaria Marrah
Published on 2012-09-20T15:35:49Z
Indexed on
2012/09/20
15:37 UTC
Read the original article
Hit count: 188
I am working on a swing application that starts with JFrame, but all the other frames are included as JInternalFrames, and i am facing some serious screen size problems when i instaled it in different computers, i used the following methode to set the JFrame in full screen
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
setBounds(0, 0, screenSize.width, screenSize.height);
JFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
but thre is no no difference, i want also to adjust the JInternalFrames with the screen size too. if you have any suggestions, solution please help :D
© Stack Overflow or respective owner