Results 1 to 6 of 6
- 04-17-2009, 06:20 PM #1
Member
- Join Date
- Jan 2009
- Posts
- 14
- Rep Power
- 0
JFrame 's components size and location problem
hellow my friends
i have a problem with a small java program that i made
the JFrames of the program are implemented based on my 17 inches screen and 1280*800 resolution
i design all the components based on my screen
have in mind that the layput pollicies for the JFrames are set to null
when i will execude my program on other computers then the sizes and the location of all the graphicas components will change while the screen size and the resolution will be different.
what i have to do exactly to solve this problem???
have in mind that the graphics will be displayed in connected with the pc plasma screens
i am waiting for the solution
- 04-17-2009, 07:04 PM #2
Option 1) use a layout manager
Option 2) get the size of the window and do the layout manually based on that
Not every computer has a 17'' screen with 1280*800Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
- 04-17-2009, 09:39 PM #3
Member
- Join Date
- Jan 2009
- Posts
- 14
- Rep Power
- 0
we i am using a layout manager the components are getting to the right possition but their size does not change an is depentend from the size of the font that i am using
what i have to to about this???
- 04-17-2009, 10:22 PM #4
Member
- Join Date
- Jan 2009
- Posts
- 14
- Rep Power
- 0
any one??
it is importand
- 04-17-2009, 10:53 PM #5
You can use setPreferredSize() on the components.
Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
- 04-18-2009, 02:24 AM #6
Member
- Join Date
- Jan 2009
- Posts
- 14
- Rep Power
- 0
Similar Threads
-
Image size in a JFrame
By nickbeacroft in forum AWT / SwingReplies: 2Last Post: 06-26-2008, 04:08 PM -
How to resize the components with the change in the size of the window?
By shaunak kiwalkar in forum SWT / JFaceReplies: 1Last Post: 06-06-2008, 07:55 AM -
Problem here guys: Set location or setBounds
By themburu in forum New To JavaReplies: 3Last Post: 06-03-2008, 07:19 PM -
Listener for JFrame size change
By Thez in forum AWT / SwingReplies: 10Last Post: 02-14-2008, 03:10 PM -
gridbaglayout: increase/decrease size of components.
By newtojava7 in forum New To JavaReplies: 2Last Post: 01-28-2008, 07:22 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks