A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Joined: Jun 05, 2001
Nov 15, 2005 12:15:00
How can you make a
vertical instead of horizontal? I want to use
one to separate areas on a
. Is there a better way to do this?
Joined: Jan 05, 2005
Nov 15, 2005 13:39:00
you can either use:
js = new
Or, say you've already created a
called js without specifying it in the constructor, you can use:
The opposite value, is, as you might guess, SwingConstants.HORIZONTAL
I haven't used this myself, just seen it in the docs.
Hope this helps!
Joined: Jun 09, 2003
Nov 15, 2005 13:42:00
> Is there a better way to do this?
depending entirely on what you're trying to do,
perhaps giving the panels a border might be an alternative
Joined: Feb 15, 2005
Nov 16, 2005 09:14:00
As others have said, without knowing what you're trying to do, this may not be appropriate, but sounds to me like you want a split pane. Take a look at what
does - it may be just what you're looking for - or not
I agree. Here's the link:
subject: Vertical JSeparator
How to remove space around JSeparator
Need to insert a vertical line in Swing - Very Urgent and important
Gap between JSeparators
Separator in JToolBar
I'm stuck with calculator GUI
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014