Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: I'm trying to use the paint method in NetBeans, but cannot get it to work.

  1. #1

    Default I'm trying to use the paint method in NetBeans, but cannot get it to work.

    Where exactly would I put the following snippet:
    public void paint(Graphics g) {
    ...
    }


  2. #2

    Default Re: I'm trying to use the paint method in NetBeans, but cannot get it to work.

    Please? A little help?

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: I'm trying to use the paint method in NetBeans, but cannot get it to work.

    Quote Originally Posted by scribbleno1 View Post
    Please? A little help?
    Have patience, and a bit more information would help get you a quicker response. Such as what you are trying to do. Is this an applet? A swing component?

  4. #4
    Member Darryl.Burke's Avatar
    Join Date
    Mar 2010
    Location
    Madgaon, Goa, India
    Posts
    494
    Thanks
    8
    Thanked 48 Times in 46 Posts

    Default Re: I'm trying to use the paint method in NetBeans, but cannot get it to work.

    Go through the Swing tutorial (link below) and learn how not to better make use of the features of your IDE.
    Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)

    Yes, it also covers how to correctly perform custom painting.

    db

Similar Threads

  1. [SOLVED] Can't get JFreeChart to work
    By igniteflow in forum Java SE APIs
    Replies: 2
    Last Post: February 15th, 2011, 02:19 AM
  2. HELP with Java Paint Program Code
    By CheekySpoon in forum AWT / Java Swing
    Replies: 1
    Last Post: April 5th, 2010, 12:03 PM
  3. How overloaded paint() works?
    By maikeru in forum What's Wrong With My Code?
    Replies: 5
    Last Post: December 21st, 2009, 06:13 PM
  4. my run program does not work
    By rman27bn in forum What's Wrong With My Code?
    Replies: 3
    Last Post: October 16th, 2009, 09:13 AM
  5. Why won't this while loop work?
    By trueblue in forum Loops & Control Statements
    Replies: 2
    Last Post: July 17th, 2009, 09:10 AM