<AWT Dev> <Swing Dev> internal API usage: sun.awt.AppContext
Alan Snyder
javalists at cbfiddle.com
Tue Jun 2 17:37:19 UTC 2015
Is this the proper forum for asking this question? I have not seen any reply.
> On May 28, 2015, at 7:13 PM, Alan Snyder <javalists at cbfiddle.com> wrote:
>
> 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 awt-dev
mailing list