Hi…
I am rewriting and recompiling the “ControllerReadTest.java” to learn the jinput programming. but I encounter these error and I don’t know how to fix it.
My OS is “Linux-Fedora Core 6” and “jinput.jar” is from jinput_combined_dist_20061029.zip.
the command I use to compile:
$ javac -classpath jinput.jar ControllerReadTest.java
the error I get:
ControllerReadTest.java:153: cannot find symbol
symbol : variable disabled
location: class ControllerReadTest.ControllerWindow
return disabled;
^
ControllerReadTest.java:157: cannot find symbol
symbol : variable disabled
location: class ControllerReadTest.ControllerWindow
disabled = b;
^
ControllerReadTest.java:158: cannot find symbol
symbol : variable disabled
location: class ControllerReadTest.ControllerWindow
if(!disabled) {
^
Note: ControllerReadTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
the source code:
…
public boolean disabled() {
return disabled; // >>error: line 153<<
}
private void setDisabled(boolean b) {
disabled = b; // >>error: line 157<<
if(!disabled) { // >>error: line 158<<
this.setTitle(ca.getName());
System.out.println(ca.getName()+" enabled");
} else {
…
does anyone know how to fix this?
Thank you…