Results 1 to 2 of 2
Thread: Doubt with GroupLayout
- 06-27-2009, 11:18 PM #1
Member
- Join Date
- Jun 2009
- Posts
- 1
- Rep Power
- 0
Doubt with GroupLayout
Hello everybody, i have been using GroupLayout and I encountered a little problem that i could not solve. I would like to see if any of you are able to give me a hand with this.
I try to add two components to a container (one over the other in Y AXE) , using the following code
layout.setHorizontalGroup(layout.createSequentialG roup()
.add(layout.createParallelGroup((GroupLayout.LEADI NG)))
.add(tbToolPanel)
.add(canvas.getGeneralPanel())
);
layout.setVerticalGroup(layout.createSequentialGro up()
.add(tbToolPanel)
.add(canvas.getGeneralPanel())
);
The problem is that it just add the canvas.getGeneralPanel() component, the other does not appear, unless i comment the .add(canvas.getGeneralPanel()) lines.
Do you have any idea of why this happens?
Any suggestion would be helpfull.
Thanks!
-
Similar Threads
-
help about class GroupLayout
By MaHa in forum NetBeansReplies: 2Last Post: 09-07-2008, 11:25 PM -
[SOLVED] Alignment in GroupLayout
By nanou in forum AWT / SwingReplies: 8Last Post: 09-03-2008, 03:14 AM -
java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
By scotter59 in forum NetBeansReplies: 6Last Post: 07-10-2008, 07:28 PM -
"Problem With GroupLayout", Please Help !
By adeeb in forum AWT / SwingReplies: 1Last Post: 06-04-2008, 10:29 AM -
doubt in jms
By veena in forum Enterprise JavaBeans (EJB)Replies: 2Last Post: 01-05-2008, 01:42 PM
Bookmarks