View unanswered posts | View active topics It is currently Mon Apr 24, 2017 11:56 pm



Reply to topic  [ 2 posts ] 
 Auto-wrapping according to parent panel width and component 
Author Message

Joined: Wed Dec 22, 2010 1:20 am
Posts: 1
Post Auto-wrapping according to parent panel width and component
Hi,

So I have a panel to which I add a bunch of components which are by default invisible and for which I change the visibility depending if it is appropriate or not. I want the visible components to appear next to each other and wrap automatically depending on their width and the parent panel width. Is it something possible to do with MiGLayout? Auto-wrapping seems to work with FlowLayout, but only if the parent panel is directly attached to the JFrame...

Thanks!


Wed Dec 22, 2010 1:30 am
Profile
Site Admin

Joined: Mon Dec 06, 2004 4:24 pm
Posts: 2485
Location: Sweden
Post Re: Auto-wrapping according to parent panel width and compon
Hello,

There are good reasons why MiG Layout doesn't support flowing layouts. The reason is that not even FlowLayout is working correctly. Try for instance to add components to a FlowLayout container in the north panel of a BorderLayout. Swing doesn't have the pluming to support it.

Cheers,
Mikael


Wed Dec 22, 2010 11:28 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.