JDK-4159234 : JOptionPane's showInternal*Dialog methods should create modal dialogs
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.6,1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic,windows_95,windows_nt
  • CPU: generic,x86
  • Submitted: 1998-07-21
  • Updated: 1999-03-31
  • Resolved: 1999-03-31
Related Reports
Duplicate :  
Description
JOptionPane's showInternal*Dialog methods create non-modal dialogs
(implemented as internal frames).

This is inconsistent with the show*Dialog methods, which produce
modal dialogs.  Also, it's inconsistent with the spec, which says
that the showInternal*Dialog methods produce modal dialogs.  Amy
says that the spec is right -- they should be modal.  And, of course,
they should be internal frames.

Comments
EVALUATION The problem is that JInternalFrame.startModal (used by JOptionPane.showInternalXX) implements the blocking for the method call, but it doesn't implement blocking input to other windows (which is what modality really is!). This is going to be tough to fix. In 1.2 we could use the stackable event queue to provide our own event queue handling which would block input to other components. For 1.1 I'm not sure how we'll be able to do this reliably in an insecure environment (requires access to event queue). amy.fowler@Eng 1998-07-22
22-07-1998