Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Auto resize components  RSS feed

 
Partheban Udayakumar
Ranch Hand
Posts: 499
AngularJS Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Campbell Ritchie
Sheriff
Posts: 53720
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What layout manager are you using?
 
Partheban Udayakumar
Ranch Hand
Posts: 499
AngularJS Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sheriff

I have used a combo of layouts. You can see that in picture I have uploaded.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Partheban Udayakumar
Ranch Hand
Posts: 499
AngularJS Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!