IN APPLet how to disable a button in java

Java
applet
Source

Also in Java: