Computer Science, asked by abdulrasheed216, 9 months ago

Which of the following methods are defined on the Graphics class:
(multiple)
1) drawLine(int, int, int, int)
2) drawImage(Image, int, int, ImageObserver)
3) drawString(String, int, int)
4) add(Component);
5) setVisible(boolean);
6) setLayout(Object);

Answers

Answered by Pikachu07
0

Commonly used methods of Graphics class:

public void drawRect(int x, int y, int width, int height): draws a rectangle with the specified width and height. ... public abstract boolean drawImage(Image img, int x, int y, ImageObserver observer): is used draw the specified image.

Similar questions