The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


drawing/painting on components

Posted by Ahsan Rafiq on June 29, 2001 at 4:13 AM

I do not understand how to draw/paint on components. For example i want to draw something on a Jpanel. How to pass the reference to the paint method to draw on that specific component. In all the books (Graphics g) argument is passed but this g does not give reference to the paint method as on which component it is painting.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us