wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes What should I do to use the paint method more than once? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "What should I do to use the paint method more than once?" Watch "What should I do to use the paint method more than once?" New topic
Author

What should I do to use the paint method more than once?

Michael Wal
Greenhorn

Joined: Jan 25, 2013
Posts: 3
Hi guys, this is my first question on this forum, I am new. What I wanted to know is, if I want to paint something in one class and then paint another thing in a different class, how should I do this with the method? I was told to use paintComponent but don't quite know what it is ... I appreciate all help
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
probably best to go through this first, then re-post with any problems/questions

http://docs.oracle.com/javase/tutorial/uiswing/painting/index.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What should I do to use the paint method more than once?