cant believ i missed that out.
thanks for the help man,
one more thing though, when im referring to the button in my actionPerformed class how do i refer to the addButton button?
i mean do i do this:
Code:
public void actionPerformed(ActionEvent e){
System.out.println(e.getSource());
if(e.getSource() == addButton){...
or something else?