Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Weird Problem  RSS feed

John Smith
Ranch Hand
Posts: 84
  • 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...
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!