File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JOptionPane and alternatively a Modal Dialog" Watch "JOptionPane and alternatively a Modal Dialog" New topic

JOptionPane and alternatively a Modal Dialog

Hetal Seth

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.
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 ?
[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.
I agree. Here's the link:
subject: JOptionPane and alternatively a Modal Dialog
It's not a secret anymore!