JDK-4834375 : JFrame and JDialog are able to close even though their child JDialog is modal
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.3.1_06
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2003-03-19
  • Updated: 2003-03-20
  • Resolved: 2003-03-20
Related Reports
Duplicate :  
Description
OS: Red Hat Linux 6.2J Second Edition
Desktop Environment: GNOME
J2SE version: 1.3.1_06

JFrame and JDialog are able to close even though their child JDialog is modal.
If their child JDialog is modal, parent JFrame and parent JDialog shouldn't be
able to close.
We observed this problem with RedHat Linux, and the behavior seems
fine with Windows2000.

Procedure to reproduce the problem:
1) run the sample program (TestModal.class)
2) Click [Open] button
3) JDialog(modal) comes up
4) Able to click [x] button and close parent JFrame

Procedure to reproduce another problem:
1) run the sample program (TestModal.class)
2) Click [Open] button
3) First JDialog(modal) comes up
4) Click [Go] button
5) Second JDialog(modal) comes up
6) Click parent JFrame
7) First JDialog(modal) covers second JDialog
8) Able to click [x] button and close both parent JFrame or first JDialog

Behavior of Windows and RedHat Linux is different and behavior of
Windows2000 seems correct. Sample programs are attached.

Comments
EVALUATION Name: osR10079 Date: 03/19/2003 The problem is reproducible with 1.3.1, 1.4.0, 1.4.1 and 1.4.2. The cause of the problem is the same as for 4336913 (On Win32, disable parent window controls while modal dialog is being created.), which was recently fixed in tiger. ###@###.### 2003-03-20 ======================================================================
20-03-2003