I am developing a Java application for the serial port communication. I want to detect the device port connection with the Java APIs. When users plugin the device USB socket to a port(i.e. USB slot), this Java program can detect and inform users the status.
I am looking for Java APIs which support the function.