Preparing Demos for the NetBeans Day
I've started to prepare with my colleague Honza demos for the NetBeans day. We'll be covering two areas, first one will be something like "Getting most of NB 4.1 editor" - less known but useful features in 4.1's editor. The second area will be features of next release of NetBeans, mostly around editor and refactorings and we will show some more of the new GUI builder as well.
We'll be showing these features on development builds, I hope not to get any "blue screens of death". So look forward to our newest and hottest exceptions ;-)
I've recently exchanged e-mails with
Rick Ross, the founder of Javalobby, he'll also come and I'm really looking forward to his speech.
Javalobby is a great source of information for me and also a place with lots of interesting conversations about Java (even though they often discuss Eclipse :-).
I've heard that there will also be some demos of the Looking Glass project (by
Hideya Kawahara - they Looking Glass guy), last time I've tried to install this project on my computer it didn't really work out. Ok, I didn't spend much time with trying to make it work. The
screenshots look just awesome, but I still wonder if it's also useful.
So I hope to
see you there, I'll need some support, similarly to Scott Mc Nealy I'm quite a shy guy (but nobody thinks so). I hope that the free NetBeans IDE field guides are not only for the visitors, but also for speakers, I would like to get one. So if anybody from marketing is reading my blog... here's a hint for you!
Subpixel Antialiasing Fontrendering in Editor
I've played with the new subpixel antialiasing in editor. It was introduced with build 39 of JDK 6. There's not an option to activate it NetBeans yet. Somebody asked how to hack the NetBeans sources to try it, so for editor you have to do is to change
this file and put a new hint into the Map, replacing the old hint:
private static final Map textAntialiasingHintsMap = new HashMap();
static {
textAntialiasingHintsMap.put(RenderingHints.KEY_TEXT_ANTIALIASING,
RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);
}
The VALUE_TEXT_ANTIALIAS_LCD_HRGB hint activates subpixel rendering. Then you need to recompile editor module with the
very latest build of JDK (39). Once recompiled, replace the original editor module in ide5/modules.
You will probably ask when will we add this option to NetBeans - it will take some time, because we want also to detect OS settings of antialiasing to make the configuration easy (both under Windows and Linux which is not trivial). I'll blog about it when the option is there.
It's important to note that the best quality is achieved with a DVI connector - if your LCD is connected with an analog connector, the rendering may look slightly worse than with DVI. Here are the screenshots, the last one is with Subpixel Antialiasing activated in editor:

No AA in editor No AA in menus
|

Normal AA in editor Normal AA in menus
|

Subpixel rendering in editor Normal AA in menus
|
You can also take a look at relevant thread at
Javalobby.
Update: You can try to the subpixel AA in NetBeans yourself by downloading the daily build 200506072010 and replacing editor in ide5/modules by
this jar (it's a good idea to keep a backup of the original file). Delete your userdir before launching the IDE. The AA setting in Editor (Tools | Options | Editing | Editor Settings | Text Antialiasing) activates the subpixel one instead of the regular. You need to use the latest JDK build to see it, otherwise be prepared for exceptions ;-)