The method drawLine(int,int,int,int) is undefined for the type Graphics
Previously, having worked the code) Now there is none. It seems that's right ...
The method drawLine(int,int,int,int) is undefined for the type Graphics
Previously, having worked the code) Now there is none. It seems that's right ...
You already have a Graphics class in your project. Accordingly, there is no method you need. In this case, you should explicitly specify the path to the Graphics class, that is, prescribe java.awt.Graphics. That is, your method signature should look something like this: public void paint(java.awt.Graphics g)
The error tells us that you do not have the drawLine(int,int,int,int)
method drawLine(int,int,int,int)
in the Graphics
class
But I, too, do not see at the very top of the line
import Graphics;
Source: https://ru.stackoverflow.com/questions/563812/
All Articles