<Swing Dev> RFR: 8049700: Deprecate obsolete classes and methods in javax/swing/plaf/basic [v4]

Tejpal Rebari trebari at openjdk.java.net
Mon Feb 1 07:19:10 UTC 2021


On Mon, 25 Jan 2021 12:14:51 GMT, Prasanta Sadhukhan <psadhukhan 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.
I have updated the documentation for some of the classes. Also changed copyright year.
> Also, try to run all jtreg/jck tests with these classes/methods removed so that we dont get any surprises once they are removed.
i have ran all the jtreg/jck tests ,the link is in bug description.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1958


More information about the swing-dev mailing list