Results 1 to 2 of 2
  1. #1
    MW130 is offline Senior Member
    Join Date
    Jan 2013
    Posts
    307
    Rep Power
    2

    Default How to use two paint methods? (Swing)

    Hi guys, I had the exact question that my subject asks. If I wanted to paint something in swing, then later paint something else, what do I do about the paint method? Do I put it in another class? Thanks

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default Re: How to use two paint methods? (Swing)

    Why do you keep asking about paint when you've been told again and again and again not to override that method to instead override paintComponent? Please tell us how we can tell you this so that you'll believe us and take it to heart? Why give you advice if you always repeatedly ignore it? Sorry if I sound frustrated, but it is because I am.

Similar Threads

  1. Paint is invalid type for variable paint.
    By minibronya in forum New To Java
    Replies: 3
    Last Post: 05-25-2012, 05:52 AM
  2. Replies: 8
    Last Post: 04-16-2012, 11:00 PM
  3. Replies: 0
    Last Post: 10-24-2011, 09:26 PM
  4. Swing: unstabel window paint?
    By t500yo in forum AWT / Swing
    Replies: 3
    Last Post: 06-03-2010, 02:25 PM
  5. help?! paint on top of swing components on JPanel
    By beam2008 in forum AWT / Swing
    Replies: 1
    Last Post: 12-05-2008, 04:15 AM

Tags for this Thread

Posting Permissions

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