Forums Register Login

Auto resize components

+Pie Number of slices to send: Send
Hi

I have swing UI designed and I want the components to resize when the frame is manually resized. The design is as shown in the fig

Project UI.jpg



The panel 4 and panel 5 will change their contents according to the list item clicked. Panel 4 just has text area but panel 5 a panel with numerous components as label, combo box, text field,check box will be present.

Now if the frame resizes, I won't all the components to resize according to the frame size. How can I achieve this?
+Pie Number of slices to send: Send
What layout manager are you using?
+Pie Number of slices to send: Send
Sheriff

I have used a combo of layouts. You can see that in picture I have uploaded.
+Pie Number of slices to send: Send
It is better to attach images to posts than to upload them to some 3rd party web site of unknown provenance, which people may or may not want to access.
+Pie Number of slices to send: Send
Ulf,

I actually uploaded the image but it was shown as broken image when I previewed the post. That's why I gave it as URL. Moreover When I give image tab it asks for URL, I have my image in my system. I don't know how to upload from system. Appending file:// to the system path didn't work
We're being followed by intergalactic spies! Quick! Take this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 868 times.
Similar Threads
itemstatechanged event on Jcombobox
GridbagConstraints and Insets errors in GUI
why repaint is not updating GUI?
Regarding JComboBox width size
which layout manager to use
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:17:39.