Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4834375

JFrame and JDialog are able to close even though their child JDialog is modal

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.3.1_06
    • client-libs
    • x86
    • windows_2000

      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.

            son Oleg Sukhodolsky (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: