Total members 11797 |It is currently Sun Sep 22, 2019 12:57 am 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     -  
 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     -  



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