Hello! I'm working on a project that involves the arduino, along with a couple sensors, and Java. I'm constructed a very primitive looking JavaFX application that will read data from the arduino sensors in realtime and graph that data in charts. I've scoured the internet looking for resources and all I've really been able to find examples of other people's projects. This is very new territory for me and while it is possible to copy and past other's work, I was hoping someone might have a recommendation for a text that discusses port communication with java.
I've downloaded all the necessary libraries to communicate with the arudino and serial port.
Posted below is my code so far. Once I started to work on the part involving the SerialPort, the code no longer works. I've tried taking it a step at at time, but I'm now running into the issue of displaying the serial data on the chart as the data is read from serial port. I've got several errors loading displaying, but I believe the brunt of the issue is coming from the ChangeListener event that is part of the solar tab. Any help you could offer would be great. I'm getting a little frustrated, because I've only found one legitimate source of information and it has helped but at this point in the program, I am veering off into different territory than the walkthrough I've been using.