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.


>> REGISTER NOW TO START POSTING


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

Results 1 to 7 of 7

Thread: GUI JAR Image 'tearing' in Windows

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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
    Member Darryl.Burke's Avatar
    Join Date
    Mar 2010
    Location
    Madgaon, Goa, India
    Posts
    495
    Thanks
    8
    Thanked 48 Times in 46 Posts

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,372
    Thanks
    184
    Thanked 836 Times in 779 Posts
    Blog Entries
    5

    Default Re: GUI JAR Image 'tearing' in Windows

    Quote Originally Posted by omid128 View Post
    ur answer is here work with this java pattern

    first read it's document
    it's open source :

    [url removed]
    Do tell, how does J2EE have anything to do with the question at hand?
    Last edited by helloworld922; July 3rd, 2010 at 08:05 PM.

  4. #4
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: GUI JAR Image 'tearing' in Windows

    could you post your code? It's pretty hard for us to help you figure out what's going on without it.

  5. #5
    Member Darryl.Burke's Avatar
    Join Date
    Mar 2010
    Location
    Madgaon, Goa, India
    Posts
    495
    Thanks
    8
    Thanked 48 Times in 46 Posts

    Default Re: GUI JAR Image 'tearing' in Windows

    Quote Originally Posted by copeg View Post
    Do tell, how does J2EE have anything to do with the question at hand?
    Nothing at all, the poster is just a common garden-variety spammer, along with its co-spammer john.stalin.java
    (http://www.javaprogrammingforums.com...searchid=10807)

    db

  6. #6
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,372
    Thanks
    184
    Thanked 836 Times in 779 Posts
    Blog Entries
    5

    Default Re: GUI JAR Image 'tearing' in Windows

    Quote Originally Posted by Darryl.Burke View Post
    Nothing at all, the poster is just a common garden-variety spammer, along with its co-spammer john.stalin.java
    (http://www.javaprogrammingforums.com...searchid=10807)

    db
    That was my hunch

  7. #7
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: GUI JAR Image 'tearing' in Windows

    Spam posts deleted

  8. The Following User Says Thank You to helloworld922 For This Useful Post:

    Darryl.Burke (July 6th, 2010)

Similar Threads

  1. Problem running .jar in Windows 7
    By SpiceProgrammer in forum Java Theory & Questions
    Replies: 3
    Last Post: December 21st, 2011, 01:28 AM
  2. Stream with servlet in windows media
    By migalvcon in forum Java Servlet
    Replies: 0
    Last Post: May 19th, 2010, 06:03 AM
  3. Overlapping windows? in a Jframe?
    By chronoz13 in forum AWT / Java Swing
    Replies: 6
    Last Post: November 21st, 2009, 12:01 PM
  4. Pixel Alteration in an image/image rotation
    By bguy in forum Java Theory & Questions
    Replies: 3
    Last Post: November 1st, 2009, 10:50 AM
  5. FileNotFound error while working with XML files in windows
    By ochieng in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: November 14th, 2008, 07:56 AM