title: .getSystemPortName not working in a Java program
body: <p>I am trying to write a program for creating a gui for plotting data from Serial Port input in Java. </p>
  
  <p>My code is the following: </p>
  
  <pre><code>public class SensorGraph {
  
      static SerialPort chosenPort;
  
      public static void main(String[] args) {
          // create and configure the window 
          JFrame window = new JFrame();
          window.setTitle("Sensor Graph GUI");
          window.setSize(600,400);
          window.setLayout(new BorderLayout());
          window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  
          // create a drop-down boc and connect button , then place them at the top of the window
          JComboBox&lt;String&gt; portList = new JComboBox&lt;String&gt;();
          JButton connectButton = new JButton("Connect");
          JPanel topPanel = new JPanel();
          topPanel.add(portList);
          topPanel.add(connectButton);
          window.add(topPanel,BorderLayout.NORTH);
  
          // populate the drop-down box
          SerialPort[] portNames = SerialPort.getCommPorts();
          for (int i = 0; i &lt; portNames.length; i++)
              portList.addItem(portNames[i].getSystemPortName());
  
          // show the window 
          window.setVisible(true);
      }
  }
  </code></pre>
  
  <p>The problem is that i wanted to have something like : </p>
  
  <p><a href="https://i.stack.imgur.com/Cz9OI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cz9OI.png" alt="enter image description here"></a></p>
  
  <p>and I end up with : </p>
  
  <p><a href="https://i.stack.imgur.com/TluDi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TluDi.png" alt="enter image description here"></a></p>
  
  <p>Is there something wrong with the library of jSerialComm? Why can I not see my SerialPorts? </p>
  
  <p>Thanks in advance! </p>