Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Swing / AWT / SWT
Positioning controls on a GridBagLayout
Barry Brashear
Ranch Hand
Posts: 303
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have a GridbagLayout which has a JButton on the left and 2 JComboBoxes
on the right. How can I set the contraints so if the panel is stretched
the 2 combo boxes remain on the right of the panel?
Thanks.
Sloan Bowman
Ranch Hand
Posts: 107
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You should
create your constraints so the right hand has a higher weight. For example.
constraint = new GridBagConstrait(1,1, 1,1,
1.0, 1.0
etc...
If you post some code I'll be glad to help you out.
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
GridLayout with weightx
Problems positioning buttons in GridBagLayout
Problem in JDialogBox
How can i open a paenl thru ActionPerformed
gridBagLayout
More...