Hello I am having fun with Arduino :D
And I have serialEvent
    public synchronized void serialEvent(SerialPortEvent oEvent) {
    if (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {
        try {
            String inputLine = input.readLine();
            System.out.println(inputLine);
        } catch (Exception e) {
            System.err.println(e.toString());
        }
    }
}
How should look like the code to display text in JLabel (java swing)
lblText.setText(inputLine.toString());
But I have error inputLine cannot be resolved
 
    