Hey Guys,
I am working on a fairly complex project and all is well in Windows and Mac OS X. However, I am having a problem under Linux. Below is my code (simplified) that is causing the problem:
Under Windows and OS X, the message dialogue window displays just fine. However under Ubuntu 9.04 and Eclipse, it is only shown briefly (less than a second) and Eclipse throws the following exception...
Disposal was interrupted:
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at java.awt.EventQueue.invokeAndWait(EventQueue.java:992)
at java.awt.Window.doDispose(Window.java:1029)
at java.awt.Dialog.doDispose(Dialog.java:1248)
at java.awt.Window.dispose(Window.java:972)
at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:854)
at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:650)
at gui.MyClass.go(MyClass.java:82)
at gui.MyClass.main(MyClass.java:43)
It originates at the first line of JOptionPane.showMessageDialog... Is there something wrong with this in Linux that may be different than other OSes?
If anyone has a clue, I'd greatly appreciate it!
Thanks
I am working on a fairly complex project and all is well in Windows and Mac OS X. However, I am having a problem under Linux. Below is my code (simplified) that is causing the problem:
Code:
String hash = "testing";
if(hash.equals("test")) {
System.out.println("Equal.");
return;
}
else {
JOptionPane.showMessageDialog(null, "Error Encountered", "Error",
JOptionPane.ERROR_MESSAGE, null);
}
Under Windows and OS X, the message dialogue window displays just fine. However under Ubuntu 9.04 and Eclipse, it is only shown briefly (less than a second) and Eclipse throws the following exception...
Disposal was interrupted:
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at java.awt.EventQueue.invokeAndWait(EventQueue.java:992)
at java.awt.Window.doDispose(Window.java:1029)
at java.awt.Dialog.doDispose(Dialog.java:1248)
at java.awt.Window.dispose(Window.java:972)
at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:854)
at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:650)
at gui.MyClass.go(MyClass.java:82)
at gui.MyClass.main(MyClass.java:43)
It originates at the first line of JOptionPane.showMessageDialog... Is there something wrong with this in Linux that may be different than other OSes?
If anyone has a clue, I'd greatly appreciate it!
Thanks