Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    19
    Views
    1,996

    [SOLVED] Re: Help needed with Images.

    They're great if you have em.
  2. Replies
    19
    Views
    1,996

    [SOLVED] Re: Help needed with Images.

    Its better to copy and paste from the actual program than to try to remember what the code was.

    Now that you have the code working, you need to rework it. Putting the JFrame code in the gui...
  3. Replies
    19
    Views
    1,996

    [SOLVED] Re: Help needed with Images.

    Please copy and post the full text of the error message here.

    What was the code you posted supposed to do?
    What is the 'j' variable?

    Your problem has nothing to do with images. It has to do...
  4. Replies
    19
    Views
    1,996

    [SOLVED] Re: Help needed with Images.

    Ok go back and read my post#8 again.
    Did you do what I said on the last line of the post: you need to add the JPanel(this) to the frame.
  5. Replies
    19
    Views
    1,996

    [SOLVED] Re: Help needed with Images.

    Does it work now?
  6. Replies
    19
    Views
    1,996

    [SOLVED] Re: Help needed with Images.

    Did you read my last post? I pointed out several problems with your code and showed consoles where "hey" is printed.
    The code works with those changes.

    BTW This would show you a problem: ...
  7. Replies
    19
    Views
    1,996

    [SOLVED] Re: Help needed with Images.

    I disagree. For debugging one time, its useful to see when/if a method is being called. I use print statements a lot to verify that. Then remove them after the they've shown what is happening.

    If...
  8. Replies
    19
    Views
    1,996

    [SOLVED] Re: Help needed with Images.

    Try using the ImageIO class for reading the image.

    Is the image file being found by the program? What is the value of img after the getImage call?
Results 1 to 8 of 8