Archive for the ‘java’ Category

Word wrap in a JEditorPane

A very simple thing I found out today, despite lots of searching around! I once had a professor who stated that: A text editor is something so very personal, that everyone should write their own. Of course I’ve always found vim a perfectly good text editor, but for my Swing projects it’s hard to embed […]

Java 3d in a NetBeans Platform Application

If you want an excellent introduction into Java 3D, look no further than here. I was following the tutorial I found there to get started with what looked to me as the perfect way of spending a Friday evening, when, somewhere at the end, it told me that: (…) it does not mix very well […]

Native look and feel for Swing under Linux

This one is not really an eye-opener, but I use this blog to record and archive stuff I find out at some point, so here’s a post about getting NetBeans Platform Applications use GTK instead of Metal. Since the Swing Application Framework (SAF) has been deprecated and developing NetBeans Platform Applications (NPA) is the new […]

Deploying EJB3 In Action code examples in NetBeans

I’m currently learning Enterprise Java Beans 3 using Debu Panda et al.’s book EJB3 in Action. The material is not very hard but there’s lots of stuff to memorize, and the best way to do that is by running the code examples and trying to change it (and break it). The easiest way to do […]

Netbeans ignores class (+ solution)

The weirdest thing happened while I was programming with my favorite IDE, Netbeans 6.8, today. When I work on big applications, I usually split them in two or three projects (usually model, view, controller). Then I import the projects in the main application project. At some point Netbeans suddenly told me it couldn’t find a […]

QT4 look and feel for Swing

UPDATE (2009-05-09): The ‘laf’ option to the Netbeans executable should be preceeded by a double dash (–laf) instead of a single one. Corrected. From the first moment that I used Linux, some 9 years ago, I was a KDE user. When KDE 4 came, I switched to Gnome, because I found KDE 4 unstable and […]