Forums Register Login

How to prevent auto resize in BorderLayout

+Pie Number of slices to send: Send
Hi,
I have a swing application which has a main screen that will hold many internal frames and a JLabel that acts like a status bar. Currently I am using BorderLayout and have added the status bar lable to the SOUTH border. Now however when ever I try to open any internal frames the internal frame is added to the CENTER border and is streached so that it takes up the whole screen; this is even after I have provided a size for these internal frames. How do I prevent the internal frames from streaching?
I am also suspecting that when I do get around this problem there will be another problem present. I think after I get the windows to show up the size I want, when I minimize them they will be hidden behind the statusbar lable - am I correnct to assume this, and if I am how can I also prevent this from happening?
I would really appreciate any input from anyone out there.
Thank you very much.
Jay
------------------
+Pie Number of slices to send: Send
Hi Jay,
I think you might be better off using the JDesktopPane instead to perform the functionality you are proposing. The API for JDesktopPane:


A container used to create a multiple-document interface or a virtual desktop. You create JInternalFrame objects and add them to the JDesktopPane.


It has different layers which you can then use to position your status component so that it won't be covered by other panes or icons.
Regards,
Manfred.
Liar, liar, pants on fire! refreshing plug:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1841 times.
Similar Threads
Frame/Frameset Framework
JInternalFrame iconifying position issue
Link internal frame to menu item
JInternalFrame iconifying size
event sequence
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:23:12.