Javamex

Java discussion forum to accompany the Javamex web site.

ok for my assignment i need to make thes JButtons dissapear when selected. Now i am not asking for a direct answer just tips and maybe some info on where else i might find helpfull info.

Views: 159

Attachments:

Reply to This

Replies to This Discussion

Hi Chris --

From your example code, I see you're already familiar with ActionListener. If you just want the button to disappear, but still have the possibility of re-appearing, then I would suggest using setVisible(false) on the button rather than removing it completely.

Neil

Reply to Discussion

RSS

© 2024   Created by Neil Coffey.   Powered by

Badges  |  Report an Issue  |  Terms of Service