aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes best layout to use Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "best layout to use" Watch "best layout to use" New topic
Author

best layout to use

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 250
hi

i would like to have in a jpanel:

jlabel - jtextfield
jlabel - jtextfield
jlabel - jtextarea

i don't want to allow to resize component in height

what layout do you suggest me?

thanks
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
because of the textArea (presumably in a scrollpane), nested borderlayout panels
in a BoxLayout (y-axis) panel might work.

but it might be a good exercise to try and get a GridBagLayout to work
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10370
    
    8

You can also google for MigLayout.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

Although I would use JGoodies' FormLayout, I think GroupLayout might work here just fine.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: best layout to use