problem to read serialport in processing

hi.. quite blanc on the coding, but copy paste do get my a long way..

I am trying to use the " * Simple Read" example from procesing.. but it seems to me that I dont get any serial data out from Arduino or in to Procesing.. No response...
The hardvare is ok. I have added a line telling a LED to turn on and a serial.printIn for debugging, so I am sure the sensor setup (a photoswitch) is ok.
I uses Mac 10.5.2. and its Arduino USB Diecimilla. The port used are the first in line.

here is the code for arduino:

// Wiring / Arduino Code
// Code for sensing a switch status and writing the value to the serial port.

int switchPin = 7; // Switch connected to pin 7
int ledPin = 13; // select the pin for the LED

void setup() {
pinMode(switchPin, INPUT); // Set pin 7 as an input
Serial.begin(9600); // Start serial communication at 9600 bps
}

void loop() {
if (digitalRead(switchPin) == HIGH) { // The switch goes HIGH when OFF
Serial.print(0, BYTE); // send 0 to Processing
Serial.println ("OFF ");
digitalWrite(ledPin, LOW); // turn the ledPin ooff

}
else { // If the switch is actualy ON,
Serial.print(1, BYTE); // send 1 to Processing
digitalWrite(ledPin, HIGH); // turn the ledPin on
Serial.println ("ON, ");
}
delay(10); // Wait 10 milliseconds
}

Here is the Procesing code:

import processing.serial.*;

Serial port; // Create object from Serial class
int val; // Data received from the serial port

void setup()
{
size(200, 200);
frameRate(10);
// Open the port that the board is connected to and use the same speed (9600 bps)
port = new Serial(this, 9600);
}

void draw()
{
if (0 < port.available()) { // If data is available,
val = port.read(); // read it and store it in val
}
background(255); // Set background to white
if (val == 0) { // If the serial value is 0,
fill(0); // set fill to black
}
else { // If the serial value is not 0,
fill(204); // set fill to light gray
}
rect(50, 50, 100, 100);
}

Hello Stig
Did you already solve your problem, because I seem to have a similar problem. My topics is:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1208593896/0#0
Ciao
Joris