Method Graphics.drawString() - Symbol not found
I'm a relative new Java developer, but have previous programming experiences with C++ and mostly Python. I enjoy working with Java, but the last days the following issue has been bothering me:
When I compile the java.awt.Graphics.drawString() method, in a program, I get the following traceback:
Also, I am using NetBeans as my Development environment, and the code get's highlighted in red. Here is a screenshot:
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Uncompilable source code
What I have done to debug the code:
- I have compared a lot my code with other code on the web, and my code seems to be syntactically correct.
- I have tried to compile the code outside of NetBeans getting the exact same traceback.
Product Version: NetBeans IDE 6.8 (Build 100326-unknown-revn)
Java: 1.6.0_18; OpenJDK 64-Bit Server VM 16.0-b13
System: Linux version 2.6.32-24-generic running on amd64; UTF-8; en_US (nb) Ubuntu Linux 10.04
Do you know what I can do to get this fixed?