Results 1 to 3 of 3
- 04-06-2010, 06:38 AM #1
Member
- Join Date
- Apr 2010
- Posts
- 1
- Rep Power
- 0
how to add more than one paint method
hi everyone
i am doing a project in which i have Java file and i have used one paint method in that file, i have created another class within the same file and i used one more paint method but its not working when i call repaint method please help me on this I want to have more than one paint method within a java file..
please help me its urgent..:)
- 04-06-2010, 06:47 AM #2
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
Read the section from the Swing tutorial on Custom Painting for an example of how to do painting. You should NOT be overriding the paint() method.
- 04-06-2010, 07:07 AM #3
Similar Threads
-
Unable to call paint() from inside method
By Y. Progammer in forum New To JavaReplies: 3Last Post: 03-01-2010, 12:47 PM -
Java Paint Method?
By leapinlizard in forum Java 2DReplies: 2Last Post: 02-11-2010, 07:01 PM -
an error in paint method
By hopey in forum Java 2DReplies: 7Last Post: 04-24-2009, 10:12 PM -
other than paint repaint
By amith in forum Java 2DReplies: 1Last Post: 07-01-2008, 11:39 PM -
paint() and paintComponent()
By goldhouse in forum Java 2DReplies: 1Last Post: 07-17-2007, 03:43 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks