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

Tejpal Rebari trebari at openjdk.java.net
Tue Feb 9 07:27:00 UTC 2021


> Please review the following fix for jdk17.
> In this fix i have deprecated and marked for removal following classes and methods 
>    public void intervalAdded(ListDataEvent e)
>    public void intervalRemoved(ListDataEvent e)
>    protected boolean lt(File a, File b) in BasicDirectoryModel.java
> 
>    inner class PropertyChangeHandler, VSBChangeListener, HSBChangeListener, 
>    ViewportChangeHandler in BasicScrollPaneUI.java
>    inner class MouseInputHandler in BasicMenuItemUI.java
>    method BasicToolBarUI.java#createFloatingFrame
> 
> From 8049700 not deprecated the paintText(Graphics g, JComponent c, Rectangle textRect, String text) method in BasicButtonUI  as AquaButtonUI, MetalButtonUI and MetalToggleButtonUI overrides it.
> Similarly not deprecated ChangeHandler of BasicMenuUI as AquaMenuUI and MotifMenuUI uses this class.

Tejpal Rebari has updated the pull request incrementally with one additional commit since the last revision:

  removed deprecation from methods of class which is also getting deprecated

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1958/files
  - new: https://git.openjdk.java.net/jdk/pull/1958/files/6b989061..7d674c13

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1958&range=05
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1958&range=04-05

  Stats: 21 lines in 2 files changed: 0 ins; 21 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1958.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1958/head:pull/1958

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


More information about the swing-dev mailing list