Results 1 to 1 of 1
  1. #1
    ekted's Avatar
    ekted is offline Member
    Join Date
    Nov 2009
    Rep Power

    Default JPanel not always painting everything

    When I run any Java application and quickly move another window over the top of it, little horizontal and vertical slivers of white are sometimes left behind. I first noticed this when working on my own Java stuff, but it also happens when running apps directly from the Sun Java site. Is this a common problem? Is there a way to prevent it? I know under native Windows that this happens when you try to draw directly to the top-level window's client area instead of creating a child window. Is this perhaps a result of Java light-weight components doing the same thing with the underlying native windows?

    Windows XP SP3, Java 1.6

    Attached in an image of this happening with a Sun sample app.
    Attached Thumbnails Attached Thumbnails JPanel not always painting everything-cap_sun.jpg  
    Last edited by ekted; 11-26-2009 at 11:54 AM.

Similar Threads

  1. Jpanel painting problem
    By kcakir in forum AWT / Swing
    Replies: 3
    Last Post: 04-15-2009, 10:21 PM
  2. painting lines when clicking a panel
    By yuriythebest in forum New To Java
    Replies: 0
    Last Post: 12-14-2008, 09:56 PM
  3. netbeans+swing = painting program?
    By yuriythebest in forum New To Java
    Replies: 3
    Last Post: 12-14-2008, 08:55 PM
  4. Applets painting outside borders in web browsers
    By sirdori in forum New To Java
    Replies: 2
    Last Post: 11-20-2008, 06:14 PM
  5. Hovering mouse over a button and painting
    By gtraylo in forum AWT / Swing
    Replies: 2
    Last Post: 04-24-2008, 09:33 AM

Posting Permissions

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