Skip to main content

John O'Conner

John O'Conner is a software architect, consultant, author, and speaker. After many years developing the internationalization features of the Java platform at Sun Microsystems, he is now actually trying to use those features in real world projects.

 

joconner's blog

Retrieving Date Elements

Posted by joconner on March 11, 2007 at 11:48 PM PDT

Earlier I mentioned that many of the Date constructors and methods are deprecated. You shouldn't use them. Someone immediately wondered how they were supposed to find out what the date actually meant...what year is it? month? day?

Dating 101

Posted by joconner on March 6, 2007 at 9:40 AM PST

The java.util.Date represents a snapshot of time, independent of locale, timezones, etc. It does that pretty well. However, the little class got overworked early in its career.

Calendars, Dates, and TimeZones

Posted by joconner on March 1, 2007 at 9:56 AM PST

In general, calendars are not easy to understand, develop, or to use. They are complex, created out of the need to understand and put order into celestial movements, seasons, religious events, and political decisions.

Arriving late to the Java Web Start party

Posted by joconner on February 22, 2007 at 10:00 AM PST

If Java Web Start were a party, I'm fashionably late as usual. OK, maybe I've missed the party altogether. I like the idea of distributing apps via a browser, automatically updating them, and getting full access to the desktop. I'm going to stick around this party a little longer to see what develops.

The Java Web Start (JWS) party has been going for a while now.

Normalization: Canonical Composition

Posted by joconner on February 11, 2007 at 3:45 PM PST

Continuing the discussion about Unicode normalization, I'll briefly describe Normalization Form C (NFC). NFC is canonical decomposition followed by canonical composition. It's the form you see the most all over the web, etc.

Normalization: Canonical Decomposition

Posted by joconner on February 8, 2007 at 1:50 AM PST

You'll recall from a previous blog that normalization is the process of transforming text into a standard form that facilitates reliable searching, sorting, and other text operations.

Compared to Windows Vista, Java choices are simple

Posted by joconner on February 5, 2007 at 9:47 PM PST

If you're a Windows user, you have a choice to make. Which version of Windows Vista do you need or want? Will you choose Home Basic, Home Premium, Business, Ultimate, or Enterprise? Oh, and don't forget Home Starter for those emerging markets...not available in the U.S. or other strong economies. As Java developers, we can't make a perfect comparison.

Give me any reason at all to use Mac OS X for Java development

Posted by joconner on January 29, 2007 at 3:24 PM PST

Give me a reason, any reason at all, to continue using Mac OS X as my primary development platform for Java applications. Java SE 6 is available now for Windows, Linux, and Solaris platforms. Why not for Mac OS X? Don't you dare mention that Java SE 6 is available on Mac OS X...I know about that.

A demo for SwingWorker

Posted by joconner on January 24, 2007 at 12:16 PM PST

swingworker image

You can take a look at a new article that describes SwingWorker...yes, I wrote it.

Improve application performance with SwingWorker

Posted by joconner on January 19, 2007 at 1:51 PM PST

I've put database queries right there in my GUI event handlers. I'm ashamed, very ashamed. I've seen a lot of code from others too, and I'm not alone in this mishandling of lengthy IO bound tasks. People sometimes actually perform web GET and POST operations from the EDT too. No kidding. You might even be involved, but I don't expect you to admit it.