File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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?
 
Similar Threads
Anonymous Issue
problem with drawImage()
Having two problem on paint
Calling the paint() method of superclass()
Need help on Graphics and repaint