Results 1 to 5 of 5
Thread: group layout - span ?
- 07-21-2010, 03:32 PM #1
Member
- Join Date
- Jul 2010
- Posts
- 11
- Rep Power
- 0
group layout - span ?
Hello,
im trying to make a gui in which i want the following components layed out like this (using group layout):

But i dont know how to get the "löschen" button below the "neu" button.
I always end up like this:

Is there a way to tell the JTextArea to take up 2 columns (similar to the grid layout), or is it impossible to make such a layout using grouplayout?
Thanks for any help :)
- 07-23-2010, 02:16 PM #2
Member
- Join Date
- Jul 2010
- Posts
- 11
- Rep Power
- 0
can't anyone help me with this?
-
Myself, I wouldn't use GroupLayout but rather a combination of other layouts, say two BoxLayouts, or BoxLayout and BorderLayout.
- 07-24-2010, 03:16 AM #4
Member
- Join Date
- Jun 2010
- Posts
- 28
- Rep Power
- 0
Let "Relationen", the text area, "Neu", and "Loschen" be called c1, c2, c3, and c4 respectfully.
Then what you want is essentially the following.
that is,Java Code:Horiz Group = Sequential Group{c1,c2,Parallel Group{c3,c4}} Vertical Group = Parallel Group{c1,c2,Sequential Group{c3,c4}}
Java Code:layout.setHorizontalGroup( layout.createSequentialGroup() .addComponent(c1) .addComponent(c2) .addGroup(layout.createParallelGroup() .addComponent(c3) .addComponent(c4)) ); layout.setVerticalGroup( layout.createParallelGroup() .addComponent(c1) .addComponent(c2) .addGroup(layout.createSequentialGroup() .addComponent(c3) .addComponent(c4)) );
- 07-26-2010, 09:26 AM #5
Member
- Join Date
- Jul 2010
- Posts
- 11
- Rep Power
- 0
Similar Threads
-
Edit layout Layout please help me
By manhtungtnk28@gmail.com in forum New To JavaReplies: 4Last Post: 11-23-2009, 08:41 AM -
How to print a HTML/JSP span using javascript?
By sayan751 in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 09-14-2009, 06:38 AM -
How to span column headers over several columns
By thayalan in forum AWT / SwingReplies: 0Last Post: 06-02-2009, 04:33 PM -
New To The Group
By javarishi in forum IntroductionsReplies: 5Last Post: 04-10-2008, 04:34 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks