File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Weird Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Weird Problem" Watch "Weird Problem" New topic

Weird Problem

John Smith
Ranch Hand

Joined: Jul 20, 2001
Posts: 84
In my UI, I have a JFrame which execs off an external program a few times a minute. This external program (written in C++) uses the full screen capabilities of the OS (Windows 2000 & XP).
While it's running, nothing else is seen on the screen. The problem I'm seeing is that when this program finishes and my Swing UI is painted back to the monitor, every once in awhile the JFrame is completely black (except for the title bar). Nothing I do can get it to repaint itself. I have to forceably close it and restart the UI. If I try to drag the window around, the JFrame just takes on the appearance of whatever is behind it. Essentially, the window never redraws itself. This is on Java 1.4.0. I have set the following VM argument: -Dsun.java2d.noddraw=true
(If I leave that out, the UI crashes immediately when the external program runs, which is a known bug in Sun's Bug Parade).
Does anyone have any information about the weird repainting problem? How to fix it? Thanks...
I agree. Here's the link:
subject: Weird Problem
It's not a secret anymore!