Structure and Interpretation of Computer Programmers

I make it easier and faster for you to write high-quality software.

Wednesday, September 20, 2006


You can’t use a java.awt.Color in WebObjects, because to use AWT at all on OS X requires connection to the WindowServer.  And unless you’re mad, you probably aren’t running your WOA as root.  This means I can’t do things like, ooh, I don’t know, making a PDF table have a white border instead of a black one.

posted by Graham Lee at 14:58  


  1. really? I don’t do WebObjects, but I’ve been using java.awt stuff without a connection to the WindowServer by using:


    when launching Tomcat.

    Does this not work?

    Comment by Anonymous — 2006-10-04 @ 22:46

  2. Hmmm…it’s no longer my web app to care about, but that probably would work. The point is that it’s senseless; the java.awt.Color class just defines a colourspace (in this case, sRGB) and a colour, none of which needs to talk to a graphical environment. It’s not like I want to draw a line…

    Comment by Graham Lee — 2006-10-09 @ 17:48

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress