in javafx, How to draw a line in javaFX :/ : I am a beginner at javaFX and  started today i think so i want how to draw line and when i make a new group and put a line object it gives me an error like:

    Group group = new Group(line);