-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b96
There are icons, which do not paint anything when Icon.paintIcon(Component c, Graphics g, int x, int y) method is used.
These are e.g.: com.sun.java.swing.plaf.gtk.GTKIconFactory.MenuArrowIcon or javax.swing.plaf.nimbus.NimbusIcon. They require an SynthContext to paint something.
There is a paintText() method in SynthGraphicsUtils, which can be used to paint an icon when null text is provided. However, it's not possible to position the icon to some specific coordinates.
Please some equivalent to sun.swing.plaf.synth.SynthIcon.paintIcon(Icon icon, SynthContext context, Graphics g, int x, int y, int w, int h) into the APIs. E.g. into SynthGraphicsUtils.
These are e.g.: com.sun.java.swing.plaf.gtk.GTKIconFactory.MenuArrowIcon or javax.swing.plaf.nimbus.NimbusIcon. They require an SynthContext to paint something.
There is a paintText() method in SynthGraphicsUtils, which can be used to paint an icon when null text is provided. However, it's not possible to position the icon to some specific coordinates.
Please some equivalent to sun.swing.plaf.synth.SynthIcon.paintIcon(Icon icon, SynthContext context, Graphics g, int x, int y, int w, int h) into the APIs. E.g. into SynthGraphicsUtils.
- relates to
-
JDK-8143256 The build is broken after JDK-8081411
-
- Resolved
-