FileDocCategorySizeDatePackage
Colours1.javaAPI DocExample679Thu Feb 03 08:18:02 GMT 2000None

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();