Java Code
/** Example showing use of JButton disabled
* @author : E.S.Boese (c) Spring 2006
*/
import javax.swing.*;
import java.awt.*;
public class setEnabledEx extends JApplet
{
JButton one;
JButton two;
JButton three;
public void init( )
{
setLayout( new FlowLayout( ) );
one = new JButton( "one" );
two = new JButton( "two" );
three = new JButton( "three" );
one.setEnabled( false );
three.setEnabled( false );
add( one );
add( two );
add( three );
}
}
Back to Code Examples
©2006-
by E.S.Boese. All Rights Reserved