Results 1 to 2 of 2
  1. #1
    emylyano3 is offline Member
    Join Date
    Jun 2009
    Posts
    1
    Rep Power
    0

    Default 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!

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Any suggestion would be helpfull.
    I suggest that you please don't cross-post the same question on multiple fora without being forthright about it. Thanks.

Similar Threads

  1. help about class GroupLayout
    By MaHa in forum NetBeans
    Replies: 2
    Last Post: 09-07-2008, 11:25 PM
  2. [SOLVED] Alignment in GroupLayout
    By nanou in forum AWT / Swing
    Replies: 8
    Last Post: 09-03-2008, 03:14 AM
  3. Replies: 6
    Last Post: 07-10-2008, 07:28 PM
  4. "Problem With GroupLayout", Please Help !
    By adeeb in forum AWT / Swing
    Replies: 1
    Last Post: 06-04-2008, 10:29 AM
  5. doubt in jms
    By veena in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 01-05-2008, 01:42 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •