Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

best layout to use

 
mark smith
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also google for MigLayout.
 
Rob Spoor
Sheriff
Pie
Posts: 20531
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although I would use JGoodies' FormLayout, I think GroupLayout might work here just fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic