Results 1 to 3 of 3
  1. #1
    gautham is offline Member
    Join Date
    Apr 2010
    Posts
    1
    Rep Power
    0

    Default 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..:)

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,234
    Rep Power
    7

    Default

    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.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

Similar Threads

  1. Unable to call paint() from inside method
    By Y. Progammer in forum New To Java
    Replies: 3
    Last Post: 03-01-2010, 12:47 PM
  2. Java Paint Method?
    By leapinlizard in forum Java 2D
    Replies: 2
    Last Post: 02-11-2010, 07:01 PM
  3. an error in paint method
    By hopey in forum Java 2D
    Replies: 7
    Last Post: 04-24-2009, 10:12 PM
  4. other than paint repaint
    By amith in forum Java 2D
    Replies: 1
    Last Post: 07-01-2008, 11:39 PM
  5. paint() and paintComponent()
    By goldhouse in forum Java 2D
    Replies: 1
    Last Post: 07-17-2007, 03:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •