Java can't find symbol
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.applet.*; 

public class Stuff extends Applet implements ActionListener
{
	Button okButton; 
	public void init() 
   { 
		setLayout(new FlowLayout());
   	okButton = new Button(""); 
		add(okButton); 
	
		okButton.addActionListener(this); 
	}
	public void paint(Graphics g)
         { 
				if (okButton.getState()) g.setColor(Color.black); 
				g.drawRect(20, 20, 200, 200);
			}
	public void actionPerformed(ActionEvent evt) 
         { 
			if (evt.getSource() == okButton)  
			repaint();
			}
}
Java can't find symbol
===

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.applet.*; 

public class Stuff extends Applet implements ActionListener
{
	Button okButton; 
	public void init() 
   { 
		setLayout(new FlowLayout());
   	okButton = new Button(""); 
		add(okButton); 
	
		okButton.addActionListener(this); 
	}
	public void paint(Graphics g)
         { 
				if (okButton.getState()) g.setColor(Color.black); 
				g.drawRect(20, 20, 200, 200);
			}
	public void actionPerformed(ActionEvent evt) 
         { 
			if (evt.getSource() == okButton)  
			repaint();
			}
}