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

JDialog spec doesn't specify result for setLocationRelativeTo() null input parm

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • docs
    • merlin
    • generic
    • generic
    • Verified


      The JDialog spec says the following about the setLocationRelativeTo()
      method:

      setLocationRelativeTo
      public void setLocationRelativeTo(java.awt.Component c)
          Sets the location of the dialog relative to the specified component.
          If the component is not currently showing, the dialog is centered
          on the screen.
            Parameters:
              c - the component in relation to which the dialog's location is
                  determined


      The spec does not specify the expected result if null is provided as
      the input parameter to the setLocationRelativeTo() method.

            sharonz Sharon Zakhour (Inactive)
            gaurisha Gauri Sharma (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: