This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Weird Problem" Watch "Weird Problem" New topic
Author

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...
Randy
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Weird Problem
 
Similar Threads
JLabel changes and then goes back??
JDialog trigger action opening JFrame closing problem
Frame class redraw problems...
How to make a java window appear in front of other Windows applications
JFrame not fitting to screen.