Feasibility of integrating an Aqua interface
Dmitri Trembovetski
Dmitri.Trembovetski at Sun.COM
Mon Dec 3 10:03:00 PST 2007
Werner Randelshofer wrote:
>
> On 03.12.2007, at 07:36, Werner Randelshofer wrote:
>> For example, an OpenJDK AquaLookAndFeel could make use the Cocoa API
>> to render the Aqua interface at runtime.
>> I think this is what Apple does with their look and feel
>> implementations anyway.
>
> btw. How do the other OpenJDK ports achieve native renderings?
> Does Windows and KDE have an API which allows to retrieve artwork from
> the system?
Yes, both Windows and GTK L&Fs use similar approach: the images
rendered by the OS (or the toolkit in case of GTK) to an off-screen
image and then used by the L&F code. Take a look at
com.sun.java.swing.plaf.XPStyle for example.
Thanks,
Dmitri
> I am asking, because I wonder where I would have to look for a similar
> feature in the Cocoa API.
>
> TIA,
> Werner
More information about the porters-dev
mailing list