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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 1.3.1_06
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_2000

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: