File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JOptionPane and alternatively a Modal Dialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JOptionPane and alternatively a Modal Dialog" Watch "JOptionPane and alternatively a Modal Dialog" New topic
Author

JOptionPane and alternatively a Modal Dialog

Hetal Seth
Greenhorn

Joined: Jun 18, 2001
Posts: 20
Hi All:
I have written a report error class and am using the JOptionPane. Now the JOP soimetimes does not display the error messages on its window, though the window pops up with the title on the title bar and the 'ok' button. If there was no display of the messages at all, I can understand that there must have been somethin wrong with my code, but that is not the case, as I mentioned earlier.
Alternatively,
I developed a modal dialog for similar purpose and found the some reaction as the JOP.
Does anyone have a clue as to what is the problem ?
Thanks,
Hetal
[This message has been edited by Hetal Seth (edited October 30, 2001).]
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
are you using the static show methods of JOptionPane or are you instatiating it? you should rather use the show######Dialog options. I never had problems with them so I suppose it is a bug in your problem.
post the relevant code.
chantal
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JOptionPane and alternatively a Modal Dialog
 
Similar Threads
JFrame confusion
Two windows get focus in turn depends on user action?
how to restrict the focus between parent and child JFrame??
Modal Window
modeless dialogs in swing