aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Weird Problem
 
Similar Threads
JFrame not fitting to screen.
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