<Swing Dev> RFR: 8049700: Deprecate obsolete classes and methods in javax/swing/plaf/basic [v2]
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Mon Jan 25 12:17:46 UTC 2021
On Tue, 19 Jan 2021 14:31:03 GMT, Tejpal Rebari <trebari at openjdk.org> wrote:
>
>
> The methods intervalAdded(ListDataEvent e) ,intervalRemoved(ListDataEvent e) and lt(File a, File b) of javax/swing/plaf/basic/BasicDirectoryModel.java states that "Obsolete - not used" ( in the doc).
>
> The BasicDirectoryModel uses similar methods like fireIntervalAdded, fireIntervalRemoved which calls AbstractListModel#fireIntervalAdded.
> But not sure that these are the alternate methods.Also dont see anything similar to lt(File a, File b).
>
> The method createFloatingFrame in the BasicToolBarUI.java states that it is "No longer used" and also specifies to use BasicToolBarUI.createFloatingWindow(JToolBar).
>
> The class MouseInputHandler in BasicMenuUI.java and classes PropertyChangeHandler, VSBChangeListener, HSBChangeListener, ViewportChangeHandler in BasicScrollPaneUI.java states that(as comments inside the class)
> "This class exists only for backward compatibility. All
> its functionality has been moved into Handler."
> we can add the above in the doc for these classes.
OK. Please add these statements in the doc, wherever possible.
Also, try to run all jtreg/jck tests with these classes/methods removed so that we dont get any surprises once they are removed.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1958
More information about the swing-dev
mailing list