3G Intro to Graphics Flashcards

1
Q

AWT (Abstract Window Toolkit)

A

Java’s original graphical tools.

The classes associated with AWT included in the package java.awt

AWT import declaration:
import java.awt.*;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Drawing Panel

A
public static void main(String [] args) {
    DrawingPanel = new DrawingPanel(size x size);
    Graphics g = panel.get.Graphics();
    g.drawLine(x1, y1, x2, y2);
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Useful Methods of Graphics Objects

A

drawLine(x1, y1, x2, y2) ->

How well did you know this?
1
Not at all
2
3
4
5
Perfectly