Article View: borland.public.jbuilder.java.swing
Article #10953showInternalxxxDialog doesn't work (for me)
From: Carlos Javier Castro Pena
Date: Wed, 28 Jul 1999 00:00
Date: Wed, 28 Jul 1999 00:00
40 lines
1942 bytes
1942 bytes
I have been trying for a long time to display Internal Dialogs, but I
wasn't successful. Usualy I get this exception:
java.lang.RuntimeException: JOptionPane: parentComponent does not have a
valid parent
at com.sun.java.swing.JOptionPane.createInternalFrame(Compiled Code)
at com.sun.java.swing.JOptionPane.showInternalOptionDialog(Compiled
Code)
at
ittc.phoenix.phclient.ClientFrame.menuHelpAbout_actionPerformed(ClientFrame.java:2084)
at
ittc.phoenix.phclient.ClientFrame$2.actionPerformed(ClientFrame.java:205)
at java.awt.MenuItem.processActionEvent(MenuItem.java:436)
at java.awt.MenuItem.processEvent(MenuItem.java:400)
at java.awt.MenuComponent.dispatchEventImpl(Compiled Code)
at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:169)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
The code is:
JOptionPane.showInternalOptionDialog(null,"MESSAGE",
"TITLE",
JOptionPane.OK_CANCEL_OPTION,
JOptionPane.ERROR_MESSAGE,
null, //icon
null,
null);
The class:
public class ClientFrame extends JFrame
I currently use JDK 1.1.8 + Swing 1.1.1 . How should I solve this
problem?
Technical Details
Message-ID:
<379F65DB.947DE4A2@ittc.ukans.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,589fd5e1688c67dd,start X-Google-Attributes: gid111d45,public From: Carlos Javier Castro Pena <jcaspen@ittc.ukans.edu> Subject: showInternalxxxDialog doesn't work (for me) Date: 1999/07/28 Message-ID: <379F65DB.947DE4A2@ittc.ukans.edu> X-Deja-AN: 506314885 Content-Transfer-Encoding: 7bit Organization: Information and Telecommunication Technology Center X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing