OK, tried that it works as an InternalFrame but I need it to be non-modal, is that possible, in a JOptionPane???
Joined: Sep 20, 2005
Originally posted by Michael Labuschagne: OK, tried that it works as an InternalFrame but I need it to be non-modal, is that possible, in a JOptionPane???
My mistake. But making it modal is the hard part. If you want non-modal then there are many ways you can do it. In your case, it might be easiest to replace your call to pane.createDialog() to pane.createInternalFrame(). (Don't forget to add() the internal frame to your JDesktopPane.)
By illegal component position it doesn't mean the x-y position, but the index within the container. What container are you adding the JInternalFrame to? (It's not clear from your code what the type of this is, but I'm guessing it's not a JDesktopPane.)
All I need is an InternalFrame that creates my Dialog which is non-Modal and stops executing successive code, after the InternalFrame deceleration until the frame is closed. JOptionPane waits for you to either close the frame or click OK, cancel and then continues executing code in the program how can I achieve this with JInternalFrame???