Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2010
    Location
    New Cross, London, UK
    Posts
    18
    Rep Power
    0

    Default Multiple JButtons in BorderLayout region.

    Hi, I am not sure if "region" is an appropriate way of describing it, but basically my question is as follows. Is it possible to have multiple JButtons in, say, the LINE_END "region"? As in, can that space be occupied by three buttons one below the other?
    Thanks in advance.

  2. #2
    eRaaaa is offline Senior Member
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    787
    Rep Power
    6

    Default

    Sure. Add a JPanel with BoxLayout or other LayoutManager to LINE_END and add the buttons to that JPanel ! :confused:

  3. #3
    Join Date
    Nov 2010
    Location
    New Cross, London, UK
    Posts
    18
    Rep Power
    0

    Default

    Quote Originally Posted by eRaaaa View Post
    Sure. Add a JPanel with BoxLayout or other LayoutManager to LINE_END and add the buttons to that JPanel ! :confused:
    Add to LINE_END?
    Sorry, I just haven't used Swing before.

  4. #4
    Join Date
    Nov 2010
    Location
    New Cross, London, UK
    Posts
    18
    Rep Power
    0

    Default

    Quote Originally Posted by eRaaaa View Post
    Sure. Add a JPanel with BoxLayout or other LayoutManager to LINE_END and add the buttons to that JPanel ! :confused:
    Sussed it. Thanks.

Similar Threads

  1. BorderLayout problem
    By TGH in forum New To Java
    Replies: 3
    Last Post: 05-27-2010, 09:51 PM
  2. Change color of a region
    By sky in forum AWT / Swing
    Replies: 5
    Last Post: 11-24-2009, 03:47 PM
  3. BorderLayout
    By oneself in forum New To Java
    Replies: 3
    Last Post: 08-06-2009, 10:59 PM
  4. BorderLayout Demo
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-11-2008, 04:51 PM
  5. Help with BorderLayout
    By lenny in forum AWT / Swing
    Replies: 1
    Last Post: 07-31-2007, 07:26 AM

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
  •