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

Move setLocationRelativeTo() up inheritance hierarchy

XMLWordPrintable

    • beta
    • generic
    • generic

      Name: mc57594 Date: 06/24/99

      Move setLocationRelativeTo method of JDialog up to
      java.awt.Window for maximum flexibility. There would be
      no change in the implementation currently within JDialog
      but this API change would allow broader use of the method,
      including for Windows, Frames, Dialogs and their other
      descendants.
      I believe it was placed in JDialog because Swing could not
      make an API change to AWT at the time. This API move would
      not impact existing code and would improve flexibility.

      I had to copy the method implementation to use it for a
      JFrame but would not have had to had it been in its
      natural position at java.awt.Window.

      Thanks,
      Jon Steelman
      (Review ID: 84816)
      ======================================================================

            rraysunw Richard Ray (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: