FileDocCategorySizeDatePackage
Colours1.javaAPI DocExample650Sun Mar 15 15:59:58 GMT 1998None

Colours1

public class Colours1 extends Frame

Fields Summary
Constructors Summary
public Colours1()

  setTitle( "Colours1" );
      setSize ( 200, 200 );
      Button red = new Button( "Red" );
      add( "North", red );
      
      red.addActionListener( new ActionListener() {
         public void actionPerformed( ActionEvent e )
         {  setBackground( Color.red );
            repaint();
         }
      });
      
      setVisible( true );
   
Methods Summary
public static voidmain(java.lang.String[] args)

  new Colours1();