This is the beginning of a code library for Arduino, Processing, XBees and other useful physical computing development and prototyping tools.
Use the links below to access the code examples.
XBee API Library for Processing