///////////////////////////////////////////////////////////////////////////////
//
//  WHO:   John L. Moreland
//
//  WHAT:  coord
//
//  WHY:   Example applet illustrating object coordination using Notify class
//
//  WHERE: San Diego Supercomputer Center
//
//  WHEN:  Tue May  6 10:45:18 PDT 1997
//
//  HOW:   Java 1.0.x
//
///////////////////////////////////////////////////////////////////////////////


import java.awt.*;
import java.applet.*;
import sfcolor_sb;
import sfcolor_tf;
import sfcolor_cs;
import sfcolor_pl;
import Notify;


public class coord2 extends Applet
{
	public void init()
	{
		Notify landrew = new Notify();

		// SFColor ScrollBar (GUI Input and Output)
		sfcolor_sb sfc1 = new sfcolor_sb( );
		sfc1.setNotify( landrew );
		landrew.setNotify( sfc1 );
		sfc1.setValue( 1.0f, 0.5f, 0.0f );
		add( sfc1 );

		// SFColor ColorSwatch (GUI output)
		sfcolor_cs sfc2 = new sfcolor_cs( );
		sfc2.setNotify( landrew );
		landrew.setNotify( sfc2 );
		add( sfc2 );

		// SFColor TextFields (GUI Input and Output)
		sfcolor_tf sfc3 = new sfcolor_tf( );
		sfc3.setNotify( landrew );
		landrew.setNotify( sfc3 );
		add( sfc3 );

		// SFColor Palette (GUI Input and Output)
		sfcolor_pl sfc4 = new sfcolor_pl( this );
		sfc4.setNotify( landrew );
		landrew.setNotify( sfc4 );
		add( sfc4 );
	}
}

