Can someone tell me the replacement of below listed API
SunToolkit.getContainingWindow
SwingUtilities2.getFontMetrics
SwingUtilities2.stringWidth
SwingUtilities2.drawString
SwingUtilities2.clipStringIfNecessary
SwingUtilities2.setLeadAnchorWithoutSelection
DefaultLookup.getIcon
And below listed classes
sun.font.FontUtilities
com.sun.java.swing.plaf.motif.MotifComboBoxUI
com.sun.java.swing.plaf.windows.WindowsComboBoxUI
com.sun.java.swing.plaf.motif.MotifScrollBarUI
com.sun.java.swing.plaf.windows.WindowsScrollBarUI
com.sun.swing.internal.plaf.metal.resources.metal_it
I got the link about SwingUtilities2. Please refer the below links.
https://bugs.openjdk.java.net/browse/JDK-8132119
SwingUtilities2.stringWidth
SwingUtilities2.drawString
SwingUtilities2.clipStringIfNecessary
These above methods can be replaced by javax.swing.plaf.basic.BasicGraphicsUtils
BasicGraphicsUtils.stringWidth
BasicGraphicsUtils.drawString
BasicGraphicsUtils.getClippedString
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With