Reputation: 4033
Is there a way to hide a jButton in Netbeans? (similar to button.visible = false in VS)
Upvotes: 1
Views: 11221
Reputation: 10843
You are looking for, button.setVisible(false);
button.setVisible(false);
Upvotes: 4
Reputation: 17810
myButton.setVisible(false);