SnippetCollection
Forums  
Links
 
Support
 


snippetCollection.com Forum Index FAQ Memberlist Search Usergroups Profile Log in to check your private messages Log in Register
Welcome to SnippetCollection.com, a friendly and fast growing community of programmers, coders, web application developers and more. You are currently viewing our forums as a guest!

This message will go away once you are registered. Also, by registering you will have access to all post topics, communicate privately with other members (PM), respond to polls and access other special features. Registration is fast, simple and absoultely free so please Click Here to join our community

Enjoy our great collection of snippets and tutorials!

Log in
Username:
Password:

 

Our Sponsors
           
Want to list your business here. Contact us.
 Panel sizes View next topic
View previous topic
Post new topic Reply to topic
Author Message
corolla



Joined: 05 Sep 2005
Posts: 39
Location: Valletta

PostPosted: Thu Apr 06, 2006 6:40 pm Reply with quoteBack to top

HI

I have a Java windows Application which I wish to divide into two panels. The first panel is using borderlayout. I am finding problems to resize the panel so that it would not take over the whole frame (window) so that I could include another panel.

I used obth the setSize and PreferredDimensions commands but none are resizing the panel to the dimensions I wanted. Can someone tell what the problem is? Is there a solution?
gaetanoc
Site Admin


Joined: 15 Aug 2005
Posts: 569

PostPosted: Fri Apr 07, 2006 5:22 pm Reply with quoteBack to top

BorderLayout is by its nature makes the center panel bigger then the border layer. I think you should switch to flow or Box layout!
corolla



Joined: 05 Sep 2005
Posts: 39
Location: Valletta

PostPosted: Fri Apr 07, 2006 7:36 pm Reply with quoteBack to top

ok thanks, that solved my problem Very Happy
gaetanoc
Site Admin


Joined: 15 Aug 2005
Posts: 569

PostPosted: Sat Apr 08, 2006 11:52 am Reply with quoteBack to top

no problem Smile
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT