Skip to main content

Please Implement Native Rendering!!!

5 replies [Last post]
jose_luis
Offline
Joined: 2006-09-12
Points: 0

Please implement NATIVE RENDERING for swing component and font... please!!!!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
fred34
Offline
Joined: 2004-06-19
Points: 0

The windows and GTK look and feels in swing do use native rendering for a lot of the components, but the fonts are a different issue. See Kirill recent blogs on incorporating native rendering via SWT into Substance.

Kirill's blog link

jose_luis
Offline
Joined: 2006-09-12
Points: 0

Thank you man, I see blog. But you know why on Windows rendering is not native???

trembovetski
Offline
Joined: 2003-12-31
Points: 0

Depends on what you mean by "native". Windows L&F does exactly the same thing as GTK - the components are rendered by windows.

Text is still rendered by Java2D, though.

Dmitri

jose_luis
Offline
Joined: 2006-09-12
Points: 0

I refer primarily to Font Rendering see http://www.pushing-pixels.org/?p=203. Here is picture showing an example.

Sorry for my English :D ...

kirillcool
Offline
Joined: 2004-11-17
Points: 0

This might not be an easy option to introduce into JDK without introducing API incompatibilities for custom look and feels. Mainly, this is due to restriction of SWT APIs that require the background to be present on the image when the text is rendered - perhaps the native APIs don't require it on all platforms.

If this is indeed the case on the native level (this is what i have been told on SWT dev mailing list), then it requires significant restructuring of the internal implementation of pretty much all UI delegates. This restructuring will almost surely lead to visual incompatibilities of existing third-party look-and-feels. When i say "surely", i mean that i did not investigate the actual implementation implications in core look-and-feels. I'm just relying on the amount of work required in Substance to achieve this.

Thanks
Kirill