How would I remove a JButton from the screen after it's clicked? I've tried:
stButton = null;
But it seems all that does is stop it listening, as the button stays in place but no longer reacts when clicked. I'd like to remove the button completely if possible.