Growable JXTaskPanes

View: New views
2 Messages — Rating Filter:   Alert me  

Growable JXTaskPanes

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

i have 2 JXTaskPanes in my Panel and I would like that when the first task pane collapses the second one will grow automatically til it fits the container panel.

I already tried using different layouts like BorderLayout and FormLayout but it did not work how I wanted.

Does anyone have a suggestion?

Thanks a lot.
[Message sent by forum member 'grifoxx' (pgrapso@...)]

http://forums.java.net/jive/thread.jspa?messageID=367257

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: Growable JXTaskPanes

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

JXTaskPane is not really designed to do that.  You would need to find/use/create a LayoutManager that sizes the components manually.  Most of the managers are going to respect the preferred size and you won't get the streching/expansion that you want.

Karl
[Message sent by forum member 'kschaefe' (kschaefe@...)]

http://forums.java.net/jive/thread.jspa?messageID=367288

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...