I am having trouble with my program, I have been compiling it repeatedly and has all work fine until I wrote the class attempting to acess my action listener for the calculation this is when the errors have started. I have remade all my buttons and class several times to make sure datatypes do not conflict but the same errors continue to occure so please exaime my source code and help me debug
This doesn't look like it would compile. I can't find a parseChar method for Character under java1.4.2. Are you trying to just switch the case of all the chars?
You don't need the "" either. The +LowerCaseValues doesn't make sense.
Just some background hints, you might want to ensure all your class names start with a capital letter. Also, variable names might be better off starting with a lowercase letter. Other programmers will be accustomed to using the case of the first letter to differentiate between classes, vars, and method names.
HTH, Aaron R>
Joined: Feb 16, 2004
C:\Documents and Settings\diadem\Desktop\upperTolower.java:14: cannot resolve symbol symbol : class ExitButtonHandler location: class upperTolower ExitButtonHandler exitHandler; ^ C:\Documents and Settings\diadem\Desktop\upperTolower.java:15: cannot resolve symbol symbol : class CalculateLButtonHandler location: class upperTolower CalculateLButtonHandler calculateLHandler; ^ C:\Documents and Settings\diadem\Desktop\upperTolower.java:33: cannot resolve symbol symbol : class CalculateLButtonHandler location: class upperTolower calculateLHandler = new CalculateLButtonHandler(); ^ C:\Documents and Settings\diadem\Desktop\upperTolower.java:37: cannot resolve symbol symbol : class ExitButtonHandler location: class upperTolower exitHandler = new ExitButtonHandler(); ^ C:\Documents and Settings\diadem\Desktop\upperTolower.java:64: cannot resolve symbol symbol : method parseChar (java.lang.String) location: class java.lang.Character LowerCaseValues = Character.parseChar(lowerCaseTF.getText()); ^ C:\Documents and Settings\diadem\Desktop\upperTolower.java:66: toUpperCase(char) in java.lang.Character cannot be applied to (int) upperCaseTF.setText(""+ Character.toUpperCase(+LowerCaseValues));
The reason for the 1st 5 errors you listed are probably because these classes that your are trying to make new objects from don't exist. And then you try and use these classes in your code. You might need to check and see if your teacher has these or maybe these are what you are supposed to create for your assignment.
Joined: Sep 10, 2002
This is starting to sound more like a java programming issue than a graphics one.
As Gregg mentioned, you are missing some classes, but it appears you could do a little rewriting and dispense with them. Unless they are required by the course? you are taking.
What did your prgm look like before you got the compile errors?