[SOLVED] Help with using Java GUI to control LED using bluetooth HC-05 module

I've got it working now.

The problem was that my Mac was creating the wrong type of serial port for the HC-05. I tried it with a Windows instead and it was fine.

Thank you for all these suggestions.