Results 1 to 6 of 6
Thread: Layout help
- 07-20-2011, 10:38 PM #1
Member
- Join Date
- Jul 2011
- Posts
- 32
- Rep Power
- 0
Layout help
I need help with layouts.
I need a simple layout of some kind, which allows me to put objects at x,y place.
Or a layout that allows me to put a gap of space between objects, that needs to be horizontolly and vertically, I tried GridConstraints and layout, I tried to to use a Separator, but nothings seems to work ok.
I hope you guys can help me.
Greetings,
L19htn1n9
PS: it needs to work on a JPanel
- 07-20-2011, 10:49 PM #2
Have you seen this tutorial? It includes a visual guide to layouts.
Lesson: Laying Out Components Within a Container (The Java™ Tutorials > Creating a GUI With JFC/Swing)
And trying to 'put objects at x,y place' isn't usually a good idea.
db
- 07-21-2011, 11:27 AM #3
Member
- Join Date
- Jul 2011
- Posts
- 32
- Rep Power
- 0
Thank you verry much for you're reply :)
It helped me alot, and I wanted to use apsolute position, because my JFrame will not be resizable :)
Greetings,
L19htn1n9
- 07-22-2011, 07:36 AM #4
Your frame might not be resizable, but what about if a user of the program has set large default fonts, possibly because of a vision defect? Using layout managers properly will automatically adjust for such personal settings.
db
- 07-22-2011, 11:24 AM #5
Member
- Join Date
- Jul 2011
- Posts
- 32
- Rep Power
- 0
That is verry true, but it is just that i really dont know how to work with the layout managers :/
and i plan to use the program, that i am coding now, for only a select few people, but when i book progress in java coding, I will look into how to properly work with layout managers, its just that i need to have open spaces to make it all look better
L19htn1n9
-
If you check out the tutorials that Darryl provided a link to in his first post, then this problem will be solved.
I second Darryl's recommendation to check out the layout tutorials. They really are quite helpful.and i plan to use the program, that i am coding now, for only a select few people, but when i book progress in java coding, I will look into how to properly work with layout managers, its just that i need to have open spaces to make it all look better
L19htn1n9
Similar Threads
-
don't know the right layout
By temyong in forum New To JavaReplies: 4Last Post: 03-10-2011, 01:13 PM -
Please help me in this layout :(
By orionorion in forum Java AppletsReplies: 1Last Post: 02-09-2011, 02:47 PM -
looking for a layout
By imorio in forum AWT / SwingReplies: 3Last Post: 08-13-2010, 05:02 PM -
Edit layout Layout please help me
By manhtungtnk28@gmail.com in forum New To JavaReplies: 4Last Post: 11-23-2009, 08:41 AM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks