Results 1 to 3 of 3
  1. #1
    kedecr is offline Member
    Join Date
    Nov 2010
    Posts
    5
    Rep Power
    0

    Default Problem with aligning components

    I want to align the radiobuttons in the bottom of the "east" area. But I can't figure it out, they are still at the top of top area, i want them in the bottom

    help please




    JPanel east = new JPanel();
    east.setLayout(new BoxLayout(east, BoxLayout.PAGE_AXIS));
    sort.setAlignmentX(Component.BOTTOM_ALIGNMENT);
    east.add(sort);
    start.setAlignmentX(Component.BOTTOM_ALIGNMENT);
    namn1.setAlignmentX(Component.BOTTOM_ALIGNMENT);
    ålder.setAlignmentX(Component.BOTTOM_ALIGNMENT);
    tid1.setAlignmentX(Component.BOTTOM_ALIGNMENT);
    east.add(start);
    east.add(namn1);
    east.add(ålder);
    east.add(tid1);
    add(east, BorderLayout.EAST);
    Last edited by kedecr; 03-09-2011 at 01:37 PM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,416
    Rep Power
    20

    Default

    Four helpful responses on the two earlier threads* you started and you didn't bother to reply to them? I think I'll pass on this one.

    db
    * While loop problem
    * Array or for loop? or both?

  3. #3
    kedecr is offline Member
    Join Date
    Nov 2010
    Posts
    5
    Rep Power
    0

Similar Threads

  1. aligning numbers,..
    By rexson98 in forum New To Java
    Replies: 6
    Last Post: 10-09-2008, 01:59 PM
  2. problem aligning both image/text inside a button
    By rick_cols in forum SWT / JFace
    Replies: 0
    Last Post: 09-18-2008, 08:20 PM
  3. Problem In Swing Components
    By SANDY_INDIA in forum AWT / Swing
    Replies: 1
    Last Post: 07-19-2008, 10:23 PM
  4. Having Trouble Aligning JLabels
    By Mark_Petrov in forum AWT / Swing
    Replies: 0
    Last Post: 01-20-2008, 05:22 PM
  5. Aligning Labels
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-02-2008, 06:26 PM

Posting Permissions

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