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???