Ive been confused a litttle about the paintcomponent that i cant run it. i have the code below
i think that you can call on the methodyou self but i wanted to see the rectangle in a realtime GUI but obvisly i have no main method.
i just wanted to know how would i be able to run this small graphic???
Joined: Jun 09, 2003
add the component to a JFrame show the frame
java will handle the painting