Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to hide or disable a button?

Status
Not open for further replies.

Outy

Programmer
Feb 7, 2001
16
BE
Hello,

I have to hide or disable(make grey)certain buttons when another one is pushed.
How can I do this?
Is it also possible to display a simple messagebox with information and an ok or cancel button when a button is pushed?


Thx
Outliner
 
hello
you can disable button as
but1.setEnable(false);
and remove the visiblity is
but1.setVisible(false);

these part of code should be in the other button actionlistenre when on its click we have to disable or remove the button.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top