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

    Default question about LayoutManager

    hey guys just asking if what layout you will use for these..
    i want my first label to be on the leftside of the pane, the button on the middle, and another label on the right side.

    thanks..:D
    Last edited by temyong; 12-30-2010 at 08:54 AM.

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,050
    Blog Entries
    7
    Rep Power
    23

    Default

    Quote Originally Posted by temyong View Post
    hey guys just asking if what layout you will use for these..
    i want my first label to be on the leftside of the pane, the button on the middle, and another label on the right side.

    thanks..:D
    Try a BorderLayout with your components in the west, center and east parts respectively. You can set the gaps if you want.

    kind regards,

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

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

    Default

    For just 3 components in one row, almost any of the standard layout managers can be used. I think my choice would be BoxLayout.

    db

Similar Threads

  1. Question concerning question marks and colons
    By jim01 in forum New To Java
    Replies: 17
    Last Post: 01-14-2011, 01:05 AM
  2. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 09:49 AM
  3. LayoutManager Best Choice
    By 67726e in forum AWT / Swing
    Replies: 2
    Last Post: 11-10-2010, 03:59 AM
  4. Changing buttonsizes in layoutmanager
    By frederic202 in forum AWT / Swing
    Replies: 2
    Last Post: 03-23-2010, 07:08 PM
  5. What layoutmanager is suitable for forms.
    By Somelauw in forum AWT / Swing
    Replies: 9
    Last Post: 12-05-2009, 02:04 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
  •