File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
best layout to use
mark smith
Ranch Hand
Joined: Apr 05, 2005
Posts: 240
posted
Apr 14, 2009 18:50:08
0
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
posted
Apr 14, 2009 20:53:08
0
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: 8430
I like...
posted
Apr 14, 2009 23:36:43
0
You can also google for MigLayout.
[
Donate a pint, save a life!
] [
How to ask questions
] [
Onff-turn it on!
]
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
I like...
posted
Apr 15, 2009 01:03:33
0
Although I would use JGoodies' FormLayout, I think
GroupLayout
might work here just fine.
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
http://zeroturnaround.com/jrebel
subject: best layout to use
Similar Threads
creating custom JComponent
Trying to convert jtextfields to a double
BoxLayout not working as advertised?
JTextArea scroll bar
Trouble with GridLayout, BoxLayout .... any sort of layout!
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter