I’m writing a Java desktop application, running Ubuntu 10.10. Everything works fine except that about 1 in 10 times, when I call JOptionPane.showMessageDialog(null, message), the dialog window appears but it is empty — just the standard gray background. Strangely, a few times when this has happened I have been able to click where the OK button should have been and it registered the click fine. Does anyone know what could cause this?
I’m writing a Java desktop application, running Ubuntu 10.10. Everything works fine except that
Share
Which JVM are you using? Make sure it’s not GCJ (as it often is by default Ubuntu/Debian). It’s swing implementation is a little odd and will often elicit strange behavior like that.