Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dynamic GUI with Swing/AWT

user8557977Jun 26 2011 — edited Jul 20 2011
Hi

I want to develop a Dynamic GUI Application. My requirement is to add/delete the Widgets Dynamically.

For Example: I have two Panels in JFrame. One panel has Text Field whose valid range is 1-15. Based on the value in the Text Filed, those many no of check boxes should be created in other panel. If text field value is 15, then 15 check boxes should be created in second panel at runtime.


Now, If I change this value from 15 to 10, then 5 checkboxes should be deleted. I could do adding the check boxes based on the text field value. But, how can I delete the check boxes at run time.


Please provide your comments..


Thanks in advance
Prashanth
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 17 2011
Added on Jun 26 2011
4 comments
339 views