trying to create an applet, here is the code:

Code:
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import com.sun.java.swing.*;
import java.net.*;
import java.io.*;

//import com.sun.java.swing.UIManager;
public class OrderStatusApplet extends JApplet {

	boolean isStandalone = false;
	JPanel jStatusPanel = new JPanel();
	JPanel jActionPanel = new JPanel();
	GridLayout gridLayout1 = new GridLayout(1, 2);
	JButton jGetStatusButton = new JButton();
	JTextField jOrderTextField = new JTextField();
	JLabel jLabel1 = new JLabel();
	JTextArea jStatusResultTextArea = new JTextArea();
	
	//get a parameter value
	public String getParameter(String key, String def) {
		
		return isStandalone ? System.getProperty(key, def) :
			(getParameter(key) != null ? getParameter(key) : def);
			
	}
	
	//default construct
	public OrderStatusApplet() {
	
	}
	
	//initialize the applet
	public void init() {
	
		try {
			jbInit();
		}
		catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	//component initialization
	private void jbInit() throws Exception {
	
		this.setSize(400,150);
		this.getContentPane().setLayout(gridLayout1);
		jGetStatusButton.setText("Get Status");
		jGetStatusButton.addActionListener(
			new java.awt.event.ActionListener() {
				public void actionPerformed(ActionEvent e) {
					jGetStatusButton_actionPerformed(e);
				}
		});
		jLabel1.setText("Order #");
		jOrderTextField.setPreferredSize(new Dimension(50, 19));
		jStatusResultTextArea.setPreferredSize( new Dimension(175, 135));
		this.getContentPane().add(jActionPanel, null);
		jActionPanel.add(jLabel1, null);
		jActionPanel.add(jOrderTextField, null);
		jActionPanel.add(jGetStatusButton, null);
		this.getContentPane().add(jStatusPanel, null);
		jStatusPanel.add(jStatusResultTextArea, null);
	}
	
	//Get Applet information
	public String getAppletInfo() {
		return "Applet Information";
	}
	
	//Get parameter info
	public String[][] getParameterInfo() {
		return null;
	}
	
	//write the StudentList to the Connection
	public void writeOrder(URLConnection connection, Order value) {
		try {
			//set this to false in order to ignore caching
			connection.setUseCaches(false);
			
			//set the content-type of the request
			//application/octet-stream is used when writing
			//application specific byte size data
			connection.setRequestProperty("CONTENT_TYPE", "application/octet-stream");
			
			//set these values to true to use the same connection
			//for both input and output
			connection.setDoInput(true);
			connection.setDoOutput(true);
			
			//create the ObjectOutputStream passing it the 
			//ByteArrayOutputStream object.
			ObjectOutputStream os = new ObjectOutputStream(connection.getOutputStream());
			
			//write the studentlist to the objectoutputstream
			System.err.println("Writing Order Object.");
			os.writeObject(value);
			os.flush();
			os.close();
		}
		catch (IOException e) {
			System.err.println(e.getMessage());
		}
	}
	
	public Order readOrder(URLConnection connection) {

		Order order = null;
		
		try {
			//create the objectinputstream passing it the 
			//inputstream object from the URLConnection
			ObjectInputStream is = new ObjectInputStream(connection.getInputStream());
			
			System.err.println("Waiting for response.");
			//read the stored object and downcast it back to
			//a Order
			order = (Order)is.readObject();
			is.close();
		}
		catch (IOException e) {
			System.err.println(e.getMessage());
		}
		catch (ClassNotFoundException ce) {
			System.err.println(ce.getMessage());
		}
		return order;
	}
	
	void jGetStatusButton_actionPerformed(ActionEvent event) {
	
		try {
			//this is where the OrderStatus Transaction begins
			Order order = new Order();
			
			order.setOrder(jOrderTextField.getText());
			
			//create our url
			URL url = new URL("http://localhost:8080/orderApp/OrderStatusServlet");
			
			//open out urlconnection
			System.err.println("Opening Connection.");
			URLConnection con = url.openConnection();
			
			//write the order
			writeOrder(con, order);
			
			//get the order from the response,
			//after the status has been checked, and printed out.
			Order response_order = readOrder(con);
			if (response_order != null) {
				//put the status String returned from the 
				//OrderStatusServlet into the jTextArea Object
				jStatusResultTextArea.setText(response_order.getStatus());
			}
			else {
				System.err.println("readObject failed.");
			}
		}
		catch (MalformedURLException mue) {
			System.err.println(mue.getMessage());
		}
		catch (Exception e) {
			System.err.println(e.getMessage());
		}
	}
}
and here is the errors.....

OrderStatusApplet.java:9: cannot find symbol
symbol: class JApplet
public class OrderStatusApplet extends JApplet {
^
OrderStatusApplet.java:12: cannot find symbol
symbol : class JPanel
location: class OrderStatusApplet
JPanel jStatusPanel = new JPanel();
^
OrderStatusApplet.java:13: cannot find symbol
symbol : class JPanel
location: class OrderStatusApplet
JPanel jActionPanel = new JPanel();
^
OrderStatusApplet.java:15: cannot find symbol
symbol : class JButton
location: class OrderStatusApplet
JButton jGetStatusButton = new JButton();
^
OrderStatusApplet.java:16: cannot find symbol
symbol : class JTextField
location: class OrderStatusApplet
JTextField jOrderTextField = new JTextField();
^
OrderStatusApplet.java:17: cannot find symbol
symbol : class JLabel
location: class OrderStatusApplet
JLabel jLabel1 = new JLabel();
^
OrderStatusApplet.java:18: cannot find symbol
symbol : class JTextArea
location: class OrderStatusApplet
JTextArea jStatusResultTextArea = new JTextArea();
thanks mike.....