Hi! I have made a desktop application which is running perfectly. But i am facing problems with jframe size on different machines.
I have monitor of 'Gateway'. I am satisfied with my jframe size on my screen . But when i shifted it on laptop of 'hp' company then my jframe and its child components appears very small.
For example I have a jframe named 'Home.java'. I set size of this jframe by following code
java.awt.Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); setSize(screenSize.width,screenSize.height);
On my monitor it appears very well i-e it takes monitor's screen size and flatters according that. But When i runs my program on 'hp' laptop it also flatters according to laptop's screen size but its child components(buttons and labels) appears very small.
Similarly I have a jframe named Sale.java. I have set its property resizeable(false).I do not need it to appear according to monitor's screen size. I have made this frame by giving a static size according to my desire.
On my pc when I runs program it appears very well i-e according to my given size and font size. But When I ran it on 'hp' laptop this jframe and its child components appear very small.
When I ran my program on 'Dell' laptop then my jframes and child components also appear with different size but not as small as on 'hp' laptop.
Is there any way that my jframes and their internal components appears in a good size according to machines.