//Mod4Choice.java
/*
 * Main control panel with menus to select various options
 * authors: Umberto Ravaioli, Janice Richards
 * version 1.0 - Copyright: Amanogawa.com - All Rights Reserved
 */

import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.lang.*;  

public class Mod1Choice extends Panel{
     private static final Color bgcolor = new Color(236,236,236);
    Label lab;
    public Choice ch;
    Mod1State state;
    
    public Mod1Choice(Mod1State state){
	super();
        this.state = state;
	setBackground(bgcolor);
	
	lab = new Label("Select: ", Label.RIGHT);
	//lab.setFont(new Font("SanSerif",Font.BOLD,12));
	lab.setFont(TheFonts.sanSerif12);
	
	ch = new Choice();
        ch.setFont(TheFonts.sanSerif12);
	ch.addItem(" Instructions");
	ch.addItem(" Show Fields");
	
	add(lab);
	add(ch);
    }
    
    public void paint(Graphics g){
	g.setColor(bgcolor.darker());
	g.fillRect(0,getSize().height-2,getSize().width,2);
	g.fillRect(getSize().width-2,0,2,getSize().height);
	g.setColor(bgcolor.brighter());
	g.fillRect(0,0,2,getSize().height-1);
	g.fillRect(0,0,getSize().width-2,2);

	Graphics2D g2d = (Graphics2D)g;
        g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                             RenderingHints.VALUE_ANTIALIAS_ON);
    }
    
}
