Data saved successfully?

I have the GUI and Phone class(OOP).if keyed in something will it be saved.

EnterBtn.addActionListener(new ActionListener(){

publicvoid actionPerformed(ActionEvent arg0){

Phone p=new Phone();

p.setIcNum(tf1.getText());// get text

p.setBrand(tf2.getText());

p.setModel(tf3.getText());

p.setSerial(tf4.getText());

p.setCost(tf5.getText());

Vector vec=new Vector();

vec.add(p);

tf1.setText("");

tf2.setText("");

tf3.setText("");

tf4.setText("");

tf5.setText("");

CardLayout cardLayout = (CardLayout)(cardPanel.getLayout());

cardLayout.show(cardPanel,"one");

}

});

[1138 byte] By [RockmanEXEa] at [2007-11-27 11:42:30]
# 1

Wicked. I've got a Peavey amp. What are we doing?

georgemca at 2007-7-29 17:44:30 > top of Java-index,Core,Core APIs...