HelpWithJava
asked on
Need help laying out my display window
I'm having trouble making my application display correctly. It is supposed to look something like:
title bar
menu bar
titled label for display
XXXXXXXXXXXXXXXXXXXXXXXXXX button
large textarea button
XXXXXXXXXXXXXXXXXXXXXXXXXX
button button
I'm using a GridLayout manager and a JPanel with BorderLayout.
When I run this I get a very tiny box in the center of the top panel where the label is supposed to be.
My text area is there, but it's not as deep as I want it to be. I changed the number for the depth, but it won't change it.
The two buttons on the right side don't show at all and the two bottom buttons are ok.
Can anybody suggest what I can do? Should I use GridBagLayout? How would I use it if I should?
title bar
menu bar
titled label for display
XXXXXXXXXXXXXXXXXXXXXXXXXX
large textarea button
XXXXXXXXXXXXXXXXXXXXXXXXXX
button button
I'm using a GridLayout manager and a JPanel with BorderLayout.
When I run this I get a very tiny box in the center of the top panel where the label is supposed to be.
My text area is there, but it's not as deep as I want it to be. I changed the number for the depth, but it won't change it.
The two buttons on the right side don't show at all and the two bottom buttons are ok.
Can anybody suggest what I can do? Should I use GridBagLayout? How would I use it if I should?
ASKER
As previously stated, I'm using a GridLayout manager and JPanels. I DID do everything you mentioned, but nothing works right. It seems like if I get one or two things to display right, the other components don't display right. That's the whole problem.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, but I have it figured out now. I will give you the points anyway since you offered a response very close to what I have done. :)
:) thanks.
don't put everything in ONE panel, but layer things a bit,
by 1st level : gross divide over the screen, 2nd level: major components and panels
3rd level: lowest components.
;JOOP!