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.*;
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); }
3
Q
Useful Methods of Graphics Objects
A
drawLine(x1, y1, x2, y2) ->