Search:

Type: Posts; User: Norm

Search: Search took 0.16 seconds.

  1. Replies
    4
    Views
    1,219

    [SOLVED] Re: Problem with image in swing gui

    The code does not compile because the Terning class is missing.
    When I remove that line and put in my image file, the code compiles and shows the image.
    Make sure the image is in the folder where...
  2. Replies
    4
    Views
    1,219

    [SOLVED] Re: Problem with image in swing gui

    Can you explain what your problem is?

    The paintComponent method can be called many times. You should read the image file outside of the paintComponent method so it is only read one time.
Results 1 to 2 of 2