<Swing Dev> internal API usage: sun.awt.AppContext
Alan Snyder
javalists at cbfiddle.com
Fri May 29 02:13:12 UTC 2015
I am using code — a custom Swing look and feel — that uses the getAppContext(), get(), put(), and remove() methods of sun.awt.AppContext to store configuration data.
Since the look and feel is registered by UIManager using the same mechanism, this seems like the right way to store configuration data for a look and feel.
I also note that AppContext advertises itself as a better solution (e.g. better than static fields) to protect applets from being disrupted by other applets, so it may have other uses.
Is there a way to duplicate this behavior using only public APIs? If not, I request that this functionality be exported in some form by JDK 9.
Alan
More information about the swing-dev
mailing list