I am very new at java so please keep it as simple as possible...
My project wants me to create a graph and plot a few points.. then make the buttons work...

so far this is what I have been able to do and it compiles and runs, My question is how do I make ActionListener draw a line if say the button "X" is pressed (please take a look at my if statements, those currently only display a message...
Also my System.exit(0) button does not exit the program..

// Program 21_06_01: Applet: Draws a Parabola
// Program date 1/28/08
// This Program Draws a graph and a Prabola

import java.applet.*;
import java.util.*;
import java.awt.*;
import javax.swing.*; //Needed for JSlider and JPanel
import javax.swing.border.*; //Needed for the borders
import java.awt.Color.*;
import java.awt.event.*; //Needed for ActionListener



public class Final_Project extends Applet
{

private Display myDisplay;

private Button xBttn = new Button("X"),
yBttn = new Button("Y"),
fBttn = new Button("Function"),
eXitBttn = new Button("Exit");

Label iTitle = new Label("Graph of a Function: ");
TextField TextBox = new TextField("<f(x) = x>",200);




public void init()
{

setLayout(null);

myDisplay = new Display();

iTitle.setBackground(Color.yellow);
iTitle.setFont(new Font("Arial",Font.BOLD,40));
iTitle.setBounds(20,15,375,60);
add(iTitle);

add(xBttn);
xBttn.setBounds(400,295,20,20);
add(yBttn);
yBttn.setBounds(210,78,20,20);

add(fBttn);
fBttn.setBounds(20,500,65,20);

add(eXitBttn);
eXitBttn.setBounds(20,540,65,40);



add(TextBox);
TextBox.setBounds(100,500,290,20);


xBttn.addActionListener(myDisplay);
yBttn.addActionListener(myDisplay);
fBttn.addActionListener(myDisplay);
eXitBttn.addActionListener(myDisplay);
eXitBttn.setActionCommand("Exit");





}



class Display extends Canvas implements ActionListener
{
private Point center;

public Display()
{
center = new Point(205,290);
}

public void actionPerformed(ActionEvent e)
{
String p = e.getActionCommand();

if(p.equals("X"))
{
showStatus("The Horizonal Line (Axis)");

}
else
if(p.equals("Function"))
{
showStatus("Shown in the text box right of the Funtion Button");
}

else
if(p.equals("Y"))
{
showStatus("The Vertical Line (Axis)");
}
else
if(p.equals("Exit"))
{
System.exit(0);
}


repaint();


}



}




public void paint(Graphics g)
{

setBackground(Color.gray);
g.setColor(Color.black);
g.drawRect(20,15,375,60);
g.drawRect(19,14,372,58);


// Draws the Graph plane and fills the color white
g.drawRect(20,100,375,375);
g.setColor(Color.white);
g.fillRect(25,105,365,365);


// Draws the x and y axis
g.setColor(Color.black);
g.drawLine(20,290,395,290);
g.drawLine(205,100,205,475);


//Draws a Rectangle around the text field
g.drawRect(98,498,294,24);
g.drawRect(96,496,298,28);
// ----------------------------------------------------------------------------


int Xpositive = 205,
Xnegative = 205,
YPositive = 290,
Ynegative = 290;

// The lines below draw points on the positive x-axis of the graph to label coordinates.
for(int i = 0; i < 12; ++i)
{

Xpositive = Xpositive + 15;
g.drawLine(Xpositive,285,Xpositive,295);


}

// The lines below draw points on the negative x-axis of the graph to label coordinates
for(int i = 0; i < 12; ++i)
{

Xnegative = Xnegative - 15;
g.drawLine(Xnegative,285,Xnegative,295);

}


// The lines below draw points on the positive y-axis of the graph to label coordinates
for(int i = 0; i < 12; ++i)
{

YPositive = YPositive - 15;
g.drawLine(200,YPositive,210,YPositive);

}


// The lines below draw points on the negative y-axis of the graph to label coordinate
for(int i = 0; i < 12; ++i)
{

Ynegative = Ynegative + 15;
g.drawLine(200,Ynegative,210,Ynegative);

}

//-------------------------------------------------------------------------

int x1 = 190,
y1 = 305;

int x2 = 220;
int y2 = 305;


// The lines below draw small circles(dots) on the graph to represent points

for(int i = 0; i < 13; ++i)
{
x1 = x1 + 15;
y1 = y1 - 15;

// Axis to Positive
g.drawOval(x1,y1,3,3);
g.setColor(Color.blue);
g.fillOval(x1,y1,3,3);
}

for(int i = 0; i < 13; ++i)
{
x2 = x2 - 15;
y2 = y2 - 15;

// Axis to Positive
g.drawOval(x2,y2,3,3);
g.setColor(Color.blue);
g.fillOval(x2,y2,3,3);
}

//-------------------------------------------------------------------------



}


}