0

How to provide auto size re-ajustment in java design i.e when vb.net form are expanded then it automatically expand the button and textfield appropiatly like nothing changed... while in java every thing messes up... Any Suggestions.

2
Contributors
4
Replies
5
Views
4 Years
Discussion Span
Last Post by Majestics
Featured Replies
  • Yes, FlowLayout is not one to use for your requirement - it doesn't resize it just adds space before/after. Use a GridLayout, or go the whole hog and use a GridBagLayout for total control Read More

0

I am doing that already..... But all of these are on fixed size not ratio based. In netbeans i have seen things in jpanel inside a jframe auto expand to fit the size of the jframe container. But when i try to code things nothing worked in eclipse. I usually use border layout with flow layout but things inside flow layout doesnt expand automatically with the ratio of jframe changes...

1

Yes, FlowLayout is not one to use for your requirement - it doesn't resize it just adds space before/after. Use a GridLayout, or go the whole hog and use a GridBagLayout for total control

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.