Originally posted by Michael Labuschagne:
Tried your suggestion but keep getting the following error:
java.lang.IllegalArgumentException: illegal component position
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.)
btw, what's the motivation for using a JOptionPane instead of creating a JInternalFrame directly?
[edit: typo]
[ July 13, 2007: Message edited by: Brian Cole ]