Article View: borland.public.jbuilder.java.swing
Article #10954Re: showInternalxxxDialog doesn't work (for me)
From: Lars Roe
Date: Wed, 28 Jul 1999 00:00
Date: Wed, 28 Jul 1999 00:00
47 lines
2161 bytes
2161 bytes
Try giving it a parent Frame instead of null. Carlos Javier Castro Pena wrote: > > 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? -- Lars Roe 612-624-6711 roex0029@tc.umn.edu
Technical Details
Message-ID:
<379F67A5.2BA62B73@tc.umn.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<379F65DB.947DE4A2@ittc.ukans.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,589fd5e1688c67dd X-Google-Attributes: gid111d45,public From: Lars Roe <roex0029@tc.umn.edu> Subject: Re: showInternalxxxDialog doesn't work (for me) Date: 1999/07/28 Message-ID: <379F67A5.2BA62B73@tc.umn.edu> X-Deja-AN: 506314886 Content-Transfer-Encoding: 7bit References: <379F65DB.947DE4A2@ittc.ukans.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: UM Mime-Version: 1.0 Reply-To: Lars.W.Roe-1@tc.umn.edu Newsgroups: borland.public.jbuilder.java.swing