<Swing Dev> Public API for internal Swing classes.

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Thu Aug 6 09:39:06 UTC 2015


Some updates:

- Just forgot to mention that it is better to provide not only 
information about used internal API but also
simple use cases where it shown in which way the internal API us used 
and which task it is intended to solve.

- It is better to use jdeps from JDK 9 where it is more up-to-date than 
in JDK 8,
   although the jdeps description is listed on Java SE 8 page:
https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jdeps.html

- The updated list of known requests is:

   JDK-8133039 Provide public API to sun.swing.UIAction#isEnabled(Object)
     https://bugs.openjdk.java.net/browse/JDK-8133039

   JDK-8081411 Add an API for painting an icon with a SynthContext
     https://bugs.openjdk.java.net/browse/JDK-8081411

   JDK-6274842 RFE: Provide a means for a custom look and feel to use 
desktop font antialiasing settings.
     https://bugs.openjdk.java.net/browse/JDK-6274842

   JDK-8132119 Provide public API for text related methods in 
SwingUtilities2
     https://bugs.openjdk.java.net/browse/JDK-8132119

   JDK-8132120 Provide public API for screen menu bar support on MacOS
     https://bugs.openjdk.java.net/browse/JDK-8132120

   JDK-6274842 RFE: Provide a means for a custom look and feel to use 
desktop font antialiasing settings.
     https://bugs.openjdk.java.net/browse/JDK-6274842

Thanks,
Alexandr.

On 7/27/2015 3:30 PM, Alexander Scherbatiy wrote:
>
> According to the JEP 200: The Modular JDK (see 
> http://openjdk.java.net/jeps/200)
> we expect that the standard Java SE modules will not export any 
> internal packages.
>
> It means that classes from internal packages (like sun.swing) will not 
> be accessible.
>
> For example:
>   sun.swing.FilePane
>   sun.swing.SwingUtilities2
>   sun.swing.sun.swing.plaf.synth.SynthIcon
> and others.
>
>
> Please, let us known if you are using the internal Swing API and it is 
> not possible to replace it by public API.
>
> There are some known requests:
>
>   JDK-8132119 Provide public API for text related methods in 
> SwingUtilities2
>     https://bugs.openjdk.java.net/browse/JDK-8132119
>
>   JDK-8132120 Provide public API for screen menu bar support on MacOS
>     https://bugs.openjdk.java.net/browse/JDK-8132120
>
>   JDK-6274842 RFE: Provide a means for a custom look and feel to use 
> desktop font antialiasing settings.
>     https://bugs.openjdk.java.net/browse/JDK-6274842
>
>
> If you don't know if you use these types (because you use 3rd party jars)
> you can use the JDK 8 "jdeps" tool to find such dependencies :-
>
> ~/jdk1.8/bin/jdeps
> Usage: jdeps <options> <classes...>
> where <classes> can be a pathname to a .class file, a directory, a JAR
> file, or a fully-qualified class name
>
> Thanks,
> Alexandr.
>




More information about the swing-dev mailing list