On Tue, 24 Mar 2026 15:50:23 GMT, Phil Race <[email protected]> wrote:

> This PR removes all remaining uses of the obsolete AppContext from Swing 
> classes.
> - Timer : just some comments
> - SwingUtilities - now unused utility methods
> - SwingWorker - now a single ExecutorService and revert to clean up via a 
> shutdown hook
> - RepaintManager - display changes no longer need to be scheduled for each 
> AppContext
> - UIManager - obsolete checking for swing defaults set from an AppContext is 
> removed - this looks to me to have been obsolete ever since plugin was 
> removed.

src/java.desktop/share/classes/javax/swing/RepaintManager.java line 1737:

> 1735:             // To avoid threading problems, we notify the RepaintManager
> 1736:             // on the thread it was created on.
> 1737:             EventQueue eventQueue = 
> SunToolkit.getSystemEventQueueImplPP();

`Toolkit.getSystemEventQueue` is a public method it can be used instead?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/30406#discussion_r2990833122

Reply via email to