Disable Button
import java.applet.Applet;
import java.awt.Button;
public class DisableButtonExample extends
Applet
{
public void init()
{
Button Button1 = new Button("Ok");
Button Button2 = new
Button("Cancel");
add(Button1);
add(Button2);
Button2.setEnabled(false);
}
}
No comments:
Post a Comment