There is a compile-time error in one of the lines in the following code. Find the line that contains the error and write the line number (picked from comments) as the answer.
import javax.swing.*;
import java.awt.*;
public class FlowLayoutQuestion extends JFrame { //1
public FlowLayoutQuestion() { //2
super("Flow Layout Question"); //3
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //4
setSize(300, 300); //5
setLocationRelativeTo(null);
add(new JButton("First")); //6
add(new JButton("Second")); //7
add(new JTextField("Text")); //8
add(new JLabel("This is a long label")); //9
add(new JButton("Third")); //10
setLayout(new FlowLayout(FlowLayout.JUSTIFY,20,10)); //11
setVisible(true); //12
}
public static void main(final String[] args) { //13
new FlowLayoutQuestion(); //14
}
}