File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Weird Problem

 
John Smith
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic