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.
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.