Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

cannot find symbol constructor

Thu Nov 06, 2008 3:21 pm

im having problems with the compiling of the program im doing, i get
this error message: cannot find symbol constructor SignUp() on this
statment...this is just a part of the whole program by the way...
Code:
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);
}
}

i dont get it since all im trying to do is open the
SignUp(SignUp.java) dialog box which is also located in the same
folder whenever id press the Add User button(its a button)...what
could be the problem? help please....



Re: cannot find symbol constructor

Thu Nov 06, 2008 3:22 pm

Hi,
the Constructor of SignUp class seems take parameters,and the line
!!!HERE!!! SignUp sign = new SignUp();//calls the signup
u didn't pass anything to it ,,,
u advise u to use IDEs (like : netbeans or eclipse ...)

Post a reply
  Related Posts  to : cannot find symbol constructor
 i got cannot find symbol error while compiling my program     -  
 Using a Constructor in jsp     -  
 Copy Constructor     -  
 Class with a Constructor in php     -  
 What Are Constructor Methods?     -  
 using of String constructor     -  
 class with constructor parameter     -  
 Find MAC Address     -  
 Find entity by id     -  
 find a string     -