Send data to arduino from PC in java over Serial (RXTXlib)

I don't like serialEvent(). The documentation is almost non-existent. What triggers it? What stops it being triggered if you don't want it?

Just use "if (Serial.available > 0) { }"

...R