What is this error?
cannot find symbol, symbol: method getstring(java.lang.String)
Location: class InternalFrameDemo
if <!windowTitleField.getText().equals(getstring("InternalFrameDemo.frame_label")))
Java is case-sensitive. Because "getstring" is not equal to "getString", the compiler thinks the "getstring" method does not exist in the InternalFrameDemo class and throws back that error.
In Java, methods will generally have the first letter of each word after the first word capitalized (e.g. toString(), toUpperCase(), etc.), classes will use Upper Camel Case (e.g. ClassName, String, StringBuilder) and constants will be in all caps (e.g. MAX_VALUE)
it means that the class InternalFrameDemo has no getstring() method - shouldn't that be "getString" with an uppercase "S"?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With