Coming from a VB background, Java is driving me crazy!!!


I have some code for a GUI application. It has several buttons on it, with one .setVisible(false);

I want to click another button and make the invisible one visible. Then I want to click the one that was invisible, and make it invisible again...

What ends up happening is this:

-Click the button, invisible one becomes visible
-Click the now visible one and it goes grey, looking like a button, but not clickable...

Anyone know how to make that button TRULY invisible so I see the back of the panel, and not just the greyed out button?

Thanks!!