Thu Nov 06, 2008 3:21 pm
public void actionPerformed(ActionEvent e)
{
if(e.getActionCommand().equals("Add User")){
!!!HERE!!! SignUp sign = new SignUp();//calls the signup dialog
}
else if(e.getActionCommand().equals("Delete User")){
try{
statement = connection.createStatement();
query = ("DELETE FROM registration where rusername = '"
/*+(String)userlist.getSelectedValue()+"'"*/);
statement.executeUpdate(query);
statement.close();
}
catch(Exception err){
err.printStackTrace();
System.out.print(err.toString());
}
}
else if(e.getActionCommand().equals("Log out")){
System.exit(0);
}
}
Thu Nov 06, 2008 3:22 pm
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.