aspose 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
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 1
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: What should I do to use the paint method more than once?
 
Similar Threads
problem with drawImage()
Anonymous Issue
Calling the paint() method of superclass()
Having two problem on paint
Need help on Graphics and repaint