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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Swing / AWT / SWT
Changing the Panel size dyanamically
sanjay hande
Greenhorn
Posts: 7
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Is it possible to change the size of a JPanel at runtime, say by clicking one of the four radio buttons inside the panel, the Panel size will vary depending on how many components are added to the Parent Panel?
Campbell Ritchie
Marshal
Posts: 79177
377
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You can add Listeners to JRadioButtons; I think it is the ActionListener you are thinking of. Then resize the JFrame in the Listeners.
Such resizing seems strange behaviour, however.
Just the other day, I was thinking ... about this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Problems positioning buttons in GridBagLayout
positioning of components w/o using layout managers
Problems with image display
Image Resize on window Resize
settiing size of Jpanel
More...