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 3 of 3

Thread: how can I "draw" images on a JPanel?

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question how can I "draw" images on a JPanel?

    Hello guys!

    I'm currently creating a simple game. I've created a game before though I don't know how to "draw" images in the game.
    Well there is a drawImage() method but I've no clue how to use it .. (you need a image object and I've no clue how to make one).
    So the question is simple, how can I draw images on a JPanel??

    Sorry for the terrible english, it isn't my main language.
    Thanks


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: how can I "draw" images on a JPanel?

    Have a look at this tutorial for examples: Trail: 2D Graphics (The Java™ Tutorials)

  3. The Following User Says Thank You to PhHein For This Useful Post:

    kaskoepoes112 (May 3rd, 2013)

  4. #3
    Junior Member
    Join Date
    Jan 2013
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: how can I "draw" images on a JPanel?

    a Thanks!!

Similar Threads

  1. Replies: 1
    Last Post: April 7th, 2013, 03:40 PM
  2. "Program execution skips the "if" statement"!
    By antony1925 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 7th, 2012, 07:15 AM
  3. Replies: 3
    Last Post: December 7th, 2011, 02:03 AM
  4. Replies: 7
    Last Post: August 13th, 2011, 01:22 AM
  5. "java.lang.NoSuchMethodError: main" and "fatal exception occured."
    By joachim89 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 10th, 2010, 08:35 AM

Tags for this Thread