Skip to main content

Laird Nelson

Laird Nelson is a Senior Software Architect at Jenzabar, where he designs and writes systems that run colleges and universities.  He also plays a mean Hammond B3.

 

ljnelson's blog

CDI gotcha

Posted by ljnelson on July 23, 2010 at 10:00 AM PDT

I learned this the hard way and wanted to make sure other people could benefit.

Pushing Jersey to the limit

Posted by ljnelson on April 28, 2010 at 1:57 PM PDT

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

Posted by ljnelson on July 31, 2008 at 10:25 AM PDT

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

Posted by ljnelson on December 17, 2007 at 12:35 PM PST

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)

Posted by ljnelson on August 31, 2007 at 8:07 AM PDT

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

Posted by ljnelson on August 27, 2007 at 10:49 AM PDT

See if this little scenario sounds familiar.

Anemic vs. Obese Domain Objects

Posted by ljnelson on July 11, 2006 at 9:34 AM PDT

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

Posted by ljnelson on June 20, 2005 at 4:06 PM PDT

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

Posted by ljnelson on September 20, 2004 at 12:09 PM PDT

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

Posted by ljnelson on September 2, 2004 at 8:10 AM PDT

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?