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

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

public class NewGuideControlPanel extends Panel{
    //private static final Color bgcolor = Color.lightGray;
    //private static final Color bgcolor = new Color(160,200,200);
     private static final Color bgcolor = new Color(236,236,236);
    public static Font labfont;
    Label lab1, lab2;
    Choice ch1, ch2;
    
    private NewGuide_State state;
    
    public NewGuideControlPanel(NewGuide_State state){
	super();
        this.state = state;
        setLayout(null);
	setBackground(bgcolor);
	
	
	
	lab2 = new Label("Select: ", Label.RIGHT);
	lab2.setFont(new Font("SanSerif",Font.BOLD,state.font12));
        lab2.setBounds(state.s25,state.s8,state.s50,state.s20);
	
	ch2 = new Choice();
        //ch2.addItem(" Instructions");
	ch2.addItem(" Impedance vs. Frequency");
	ch2.addItem(" Impedance vs. Strip Width");
	ch2.addItem(" Permittivity vs. Frequency");
	ch2.addItem(" Permittivity vs. Strip Width");
        ch2.setFont(new Font("SanSerif",Font.ITALIC,state.font12));
        ch2.setBounds(state.s80, state.s10,state.s200,state.s20);
	
	add(lab2);
	add(ch2);
    }
    
    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);
    }
    
}
