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.


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

Results 1 to 2 of 2

Thread: Need help with my code

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Thanked 0 Times in 0 Posts

    Default Need help with my code

    I have a program to write and part of the instructions say, "The .drawImage() method has a version that does not accept the width and height of the container, thus drawing the image to size or more appropriately, not scaled. The version which takes the width and the height will scale the image to fit the dimensions. Therefore, you will draw the image scaled/not scaled, based on the user's setting/not setting of the scaled field."

    Every g.drawImage method it gives me on NetBeans gives me an argument with a width and height in it. Can anyone tell me what I'm doing wrong?

  2. #2
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    My Mood
    Thanked 139 Times in 134 Posts

    Default Re: Need help with my code

    OK,... . so please do tell, ... what exactly is your question? And where is your involved code?

Similar Threads

  1. Replies: 4
    Last Post: January 24th, 2013, 10:20 AM
  2. Replies: 7
    Last Post: January 24th, 2013, 09:41 AM
  3. Trouble Porting my Java File Reading Code to Android Code
    By Gravity Games in forum Android Development
    Replies: 0
    Last Post: December 6th, 2012, 03:38 PM
  4. Replies: 5
    Last Post: November 14th, 2012, 09:47 AM
  5. Replies: 3
    Last Post: September 3rd, 2012, 11:36 AM