Total members 11895 |It is currently Sun Dec 22, 2024 1:17 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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....




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time

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 ...)

_________________
Please recommend my post if you found it helpful


Author:
Proficient
User avatar Posts: 228
Have thanks: 0 time
Post new topic Reply to topic  [ 2 posts ] 

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



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
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