// works on Preview and EAv0.1 versions

import com.sun.kjava.*;

/** Most basic of all examples, we extend a Spotlet, and merely draw
 *  some text on the screen.  Note that there is no event handling of
 *  any kind, including exiting the Spotlet.
 */ 
public class SimpleSpotlet extends Spotlet {
    
    // handle on the singleton Graphics object
    static Graphics g = Graphics.getGraphics();
    
    /**
     * The main method simply creates a Scribble spotlet and
     * registers its event handlers.
     */
    public static void main(String[] args) {
        SimpleSpotlet testSpotlet = new SimpleSpotlet();
	testSpotlet.register(NO_EVENT_OPTIONS);
    }
    
    /**
     * Default constructor creates the GUI components and draws them.
     */
    public SimpleSpotlet() {
	
	// paint the screen
	paint();
    }
    
    /**
     * Draw the screen
     */
    private void paint() {
	g.clearScreen();
	g.drawString("Simple Spotlet",60, 80);
    }
    
}


