Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    14
    Views
    1,898

    Re: How can i add an image into my source code?

    Read the API doc for the ImageIO class and see what package it is in. It will be java. something.
  2. Replies
    14
    Views
    1,898

    Re: How can i add an image into my source code?

    Please explain the problem
  3. Replies
    14
    Views
    1,898

    Re: How can i add an image into my source code?

    Did you add the import for that class?
  4. Replies
    14
    Views
    1,898

    Re: How can i add an image into my source code?

    Not correctly coded. Look at the {}s
  5. Replies
    14
    Views
    1,898

    Re: How can i add an image into my source code?

    You must have a catch with the try:
    try{ YOUR CODE HERE }catch(Exception x) {x.printStackTrace();}
  6. Replies
    14
    Views
    1,898

    Re: How can i add an image into my source code?

    Post what you have tried. And the error messages you had.

    Please edit your code and wrap it in code tags to preserve the formatting.
    See: BB Code List - Java Programming Forums
    Or use Go...
  7. Replies
    14
    Views
    1,898

    Re: How can i add an image into my source code?

    I assume you mean you want to replace the calls to fillRect() with a call to drawImage()
    Read the image files into an image (see the ImageIO class) and use the drawImage method
Results 1 to 7 of 7