JAVA fairly simple awt graphics code
Posted on 2005-04-26
my class is as follows:
class myCanvas extends Canvas
public void paint(Graphics g)
(............all my text needs to go here...)
I need to write the text " This works great! " at x = 20 and y = 60
and then draw a horizontal line 75 pixels wide at 60 pixels down. Also,
an oval 45 pixels wide by 30 pixels high and position it at x = 40 and y = 80.
A button (named quitButton with text "quit") needs to be declared and placed
onto the screen at location "East", the listener also needs to be added to the button.