-
Enhancement
-
Resolution: Fixed
-
P5
-
1.2.2
-
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)
======================================================================
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)
======================================================================