Results 1 to 4 of 4
- 01-02-2011, 09:36 PM #1
Member
- Join Date
- Nov 2010
- Location
- New Cross, London, UK
- Posts
- 18
- Rep Power
- 0
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.
- 01-02-2011, 09:42 PM #2
Senior Member
- Join Date
- Oct 2010
- Location
- Germany
- Posts
- 780
- Rep Power
- 4
Sure. Add a JPanel with BoxLayout or other LayoutManager to LINE_END and add the buttons to that JPanel ! :confused:
- 01-02-2011, 10:46 PM #3
Member
- Join Date
- Nov 2010
- Location
- New Cross, London, UK
- Posts
- 18
- Rep Power
- 0
- 01-02-2011, 11:28 PM #4
Member
- Join Date
- Nov 2010
- Location
- New Cross, London, UK
- Posts
- 18
- Rep Power
- 0
Similar Threads
-
BorderLayout problem
By TGH in forum New To JavaReplies: 3Last Post: 05-27-2010, 09:51 PM -
Change color of a region
By sky in forum AWT / SwingReplies: 5Last Post: 11-24-2009, 03:47 PM -
BorderLayout
By oneself in forum New To JavaReplies: 3Last Post: 08-06-2009, 10:59 PM -
BorderLayout Demo
By Java Tip in forum SWTReplies: 0Last Post: 07-11-2008, 04:51 PM -
Help with BorderLayout
By lenny in forum AWT / SwingReplies: 1Last Post: 07-31-2007, 07:26 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks