ljnelson's blog
CDI gotcha
I learned this the hard way and wanted to make sure other people could benefit.
Pushing Jersey to the limit
I wanted to describe an interesting problem I recently faced that involved the most excellent JAX-RS specification and its Jersey implementation. The quick overview is that we wanted the output of our JAX-RS resource classes to be client-agnostic, but we also wanted the ability to insert a decorator of sorts in between the objects we were returning and the normal JAX-RS serialization/writ
Nimbus and Opacity
This one tripped me up, and I thought I'd post it here. I have a case where I need to pour text into a JTextField, but have that JTextField look like a JLabel. So as I type in one field, I need this "gray" second field to update, live, before the user's eyes. I also need the ability for the user to cut-and-paste values out of it.
Useful Swing Thing #1
In Microsoft Outlook, along with probably dozens of other desktop applications, pressing ESC just about anywhere will cause the current window you're in to be cancelled.
Objects and Strings and the Wrangling Thereof (Part 2)
In the prior entry, we learned that Java ships with several tools to standardize the conversion between Strings and Objects. We covered the text conversion methods of java.beans.PropertyEditor.
Objects and Strings and the Wrangling Thereof
Anemic vs. Obese Domain Objects
Child number two has kept me away from the blogosphere. As I write this, señor Nelson Jr. is busily learning how to access and destroy objects. Next up: garbage collection.
Of Detachable Root Panes and Desktop Hopping
Long, long, long time no post. A job change and a two-year-old will do that to you.
On today's menu: how to make a JRootPane subclass that can pop itself in and out of JInternalFrames and JFrames. Let's dive right in.
Cheap Hack I: rename your jar file, get a different Main-Class
Here's a fun hack.
I (like everyone else in the world) have a collection of utilities I take with me from job to job. It's served me well for several years now. These utilities are simple, domain-independent things: classes to copy files, find out what jar file a class is loading from, that sort of thing.
Seventeenth century object design
Hello, first of all. It's an honor to be part of the java.net weblogging community.
A discussion concerning component reuse brought me back to my philosophy major days in college. Who knew British empiricism could help you with object design?





