File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes can i add multiple component in  BorderLayout in SOUTH Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "can i add multiple component in  BorderLayout in SOUTH" Watch "can i add multiple component in  BorderLayout in SOUTH" New topic
Author

can i add multiple component in BorderLayout in SOUTH

Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Dear sir i would like to know that as we add any component in contaner with BorderLayout then each component will arranged in SOUTH,NORTH,EAST, WEST and CENTER.

But i am watching that only one component are added in each area But if i want to add more that one component in SOUTH NORTH etc then what i have to do.

I mean can i add multile component in single zone like SOUTH.


Regard

Arun
Chulwoo Choi
Ranch Hand

Joined: Apr 11, 2005
Posts: 65
Add a Panel first and then, add components to the Panel.
For example, you can add a Panel to the SOUTH area and inside that panel, you can add Buttons, Labels, etc.

Chulwoo
Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Thanks
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Arun, please in future, ask non-SCJD specific questions in the appropriate forum - in this case our Swing forum.

We have forums for Swing, Threads, Java In General (Intermediate, Advanced), IDE's, whatever.
[ December 08, 2006: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
Don't get me started about those stupid light bulbs.
 
subject: can i add multiple component in BorderLayout in SOUTH
 
Similar Threads
JPanel and buttons
Adding padding to GUI components
BorderLayout placement Constraint
Layout Policy
How to display components as well as draw?