Marcel,
I ran a similar version on my system. Generally it behaved as
expected, but I
did have two strange results:
1) Every other time I clicked ok, the new message box would not render
properly. For example, the second, forth, sixth, etc., click would
have a malformed
dialog box. The buttons are cut off at the bottom.
2) It seems the app would lock up *almost* every time, not every time.
However, I can not seem
to get it to lock up when I want. I have also noticed this with an
app I am doing
for work. I locks up while rendering frames, but not as frequently
as this one does.
Hope this helps.
-Tom
-- Here's my version --
import javax.swing.JOptionPane;
import javax.swing.JFrame;
public class ModalEvent
{
static public void main(String[] args)
{
while(true) {
System.out.println("Testing JDialog events ...");
JFrame frame = new JFrame("Hello");
String str = JOptionPane.showInputDialog(frame,
"Please enter: ",
"Modal not returning",
JOptionPane.QUESTION_MESSAGE);
System.out.println("SUCCESS: str=" + str);
}
}
}
--
+-------------------------------------------------------------------+
+ Thomas M. Sasala, Electrical Engineer [EMAIL PROTECTED] +
+ MRJ Technology Solutions http://www.mrj.com +
+ 10461 White Granite Drive, Suite 102 (W)(703)277-1714 +
+ Oakton, VA 22124 (F)(703)277-1702 +
+-------------------------------------------------------------------+
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]