Using a Gui interface im trying to implement fifo queue. i've build the gui ..now im trying to get the buttons to work i have added actionlisteners but they are currently blank.Can someone help me with the first method Insert and pretty sure i can understand the rest??PLZZZ
Java Code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;


public class queue2 extends JApplet
{
Font font = new Font("Verdana", Font.BOLD, 12);
private JTextField T0;
private JButton Insert,Remove,CurrentSize,MaxSize,Peek;

//**************Build Gui Enviroment***************//

public void init()
{
final Queue quiz = new Queue();

Container c = getContentPane();
c.setLayout(new GridLayout(3,2));

T0 = new JTextField();
c.add(T0);
T0.setFont(font);
T0.setForeground(Color.red);



//**************Insert Button***************//

Insert = new JButton("Insert");
c.add(Insert);
Insert.setForeground(Color.red);
Insert.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
quiz.Insert(T0.getText());

///////////////
	}
});

Remove = new JButton("Remove");
c.add(Remove);
Remove.setForeground(Color.green);
Remove.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
///////////////
	}
});

CurrentSize = new JButton("CurrentSize");
c.add(CurrentSize);
CurrentSize.setForeground(Color.red);
CurrentSize.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
///////////////
	}
});

MaxSize = new JButton("MaxSize");
c.add(MaxSize);
MaxSize.setForeground(Color.red);
MaxSize.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
///////////////
	}
});


Peek = new JButton("Peek");
c.add(Peek);
Peek.setForeground(Color.green);
Peek.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
///////////////end Init()//////////////////////////
	}
	});


}
public float getFloat(JTextField t)
{
return Float.parseFloat(t.getText());
}


//-------------------------------------------
// set a text field to a floating point value
//-------------------------------------------
public void setFloat(JTextField t, float p)
{
t.setText((new Float(p)).toString());
}

public static void main(String[] args){


JFrame app = new JFrame("FIFO");
JApplet applet = new queue2();
applet.init();
app.setContentPane(applet.getContentPane());
app.setSize(300, 300);
app.setVisible(true);
}
}
Java Code:
import java.util.*;
public class Queue<String> { 
LinkedList l = new LinkedList();
int s,size;

public Queue(){
int size = s;
}

public void Insert(String a){
if (size == 3)
    System.out.println("Queue is full");
	 else
	 l.offer(a);
	 size++;
	 
	 
}

public Object Remove(){
return null;
}

public Object Peek(){
return l.getFirst();

}

public void CurrentSize(){

}

public void MaxSize(){
}
}