Results 1 to 5 of 5
  1. #1
    croe is offline Member
    Join Date
    Jul 2010
    Posts
    3
    Rep Power
    0

    Unhappy GUI JAR Image 'tearing' in Windows

    Hi all,

    I'm a bit of a novice in Java, and have been basically learning as I went along while programming a visualization GUI with Swing. I've been surprised with how relatively smooth development has gone (I think mainly because I'm using Eclipse) on my Linux machine.

    Basically, my GUI displays 2 images: on the first, it draws some points at certain coordinates (given as input) on a map (a loaded .png resource) and for the second, it displays a zoomed-in picture of the region containing those painted coordinates and the map.

    The program works great on my Linux machine, running from either eclipse or a runnable JAR, but I gave the GUI .jar to a person who ran it in Windows, and the zoom image component will 'tear' the zoomed-in image, or display a white image on some but not all of the outputs. I ran my application directly from Eclipse on my Windows computer and it worked perfectly fine, but when I created a runnable JAR from the project, it gave the same error-prone results as before. In both cases where this bug occurred, the images that were torn or corrupted resulted from the same input, so the problem is not random, and is absolutely reproducible.

    Summarily, it appears that this problem only occurs when running a Jar of the application in Windows, and nowhere else so far... has anybody ever heard about or seen this before?

  2. #2
    croe is offline Member
    Join Date
    Jul 2010
    Posts
    3
    Rep Power
    0

    Default

    In addition, I have just discovered the behavior of this bug. It appears that on certain input values (I have yet to determine the pattern) the zoomed image will display half(either vertically or horizontally) of itself normally, and then zoom in even further on itself and display that as the second half. There are also certain times when all it will display is a white, empty box.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

  4. #4
    croe is offline Member
    Join Date
    Jul 2010
    Posts
    3
    Rep Power
    0

    Default

    Ok, thanks for informing everyone that I posted on 3 different forums a problem that I have no idea how to solve...that helps. I really don't understand the problem, it's not like I'm maliciously spamming. I'm genuinely seeking advice and trying to ask a reasonable amount of knowledgeable people.

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default

    Sure, by cross posting you guarantee that many of us will waste time answering a question that has already been answered.
    It's OK to cross post, IF YOU TELL EVERYONE ABOUT IT and post the links so we can look at the other threads to see if we should continue.

Similar Threads

  1. how to change windows xp background image through java
    By erosenthil in forum Advanced Java
    Replies: 1
    Last Post: 08-18-2009, 12:57 PM
  2. Replies: 14
    Last Post: 04-10-2009, 08:46 AM
  3. Replies: 6
    Last Post: 04-08-2009, 04:05 AM
  4. Image that remains always on the top of the windows
    By Satish Nankani in forum Advanced Java
    Replies: 2
    Last Post: 01-06-2009, 07:40 PM
  5. Replies: 0
    Last Post: 01-08-2008, 05:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •