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.


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

Results 1 to 2 of 2

Thread: Double buffered Image is flickering

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Fullerton, CA
    Thanked 0 Times in 0 Posts

    Default Double buffered Image is flickering

    I'm using swing to create a simple GUI application that has a "slide show" effect with three different images. I use a timer that fires every 50 msec to move the outgoing image a few pixels to the right as the new incoming image moves in to replace it. Once the new image fills the frame the 50 msec timer stops and a 7 second timer is set to go off for the next slide. I had flickering problems during the transition so I used a double buffer based on some other forums that I read and the flicker went away. Then I ran the same code straight from the jar file - as opposed to the NetBeans IDE - and the flicker continues worse than before. Has anyone seen this before? I'm using JDK 1.5 which has some issues with Windows7, but I don't think it's related. Oh, and did I mention it runs perfectly on a Mac.

  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 833 Times in 772 Posts
    Blog Entries

    Default Re: Double buffered Image is flickering

    Post code that demonstrates the problem, and if you want help faster post code as an SSCCE. There are a number of things that can cause the problems you see...and without code there is no context to advise one way or another.

Similar Threads

  1. JPanel flickering
    By Ghosth in forum AWT / Java Swing
    Replies: 1
    Last Post: April 30th, 2011, 10:52 AM
  2. Java swing buttons are flickering in windows 7 environment
    By javasam in forum Member Introductions
    Replies: 1
    Last Post: February 17th, 2011, 09:51 AM
  3. Java swing buttons are flickering in windows 7 environment
    By javasam in forum AWT / Java Swing
    Replies: 1
    Last Post: February 14th, 2011, 12:13 PM
  4. Buffered Reader to J Option
    By jk_0821 in forum Collections and Generics
    Replies: 13
    Last Post: July 19th, 2010, 03:14 PM
  5. Buffered Reader is not reading my file properly... HELP!
    By mannyT in forum File I/O & Other I/O Streams
    Replies: 8
    Last Post: November 8th, 2009, 08:14 PM

Tags for this Thread