4. import java.awt.Graphics;
5. import javax.swing.JPanel;
6.
7. public class MyLines extends JPanel
8. {
9. // Declare variables
10. int startingx;
11. int startingy;
12. int startingl;
13.
14. // Contruct values to work in the JPanel
15. public MyLines (int x, int y, int l)
16. {
17. startingx = x;
18. startingy = y;
19. startingl = l;
20. }
21.
22. // Start of the paint componet
23. public void paintComponet ( Graphics g )
24. {
25. super.paintComponet (g);
26. int v1;
27. int v2;
28. v1 = startingx;
29. v2 = startingy;
30.
31. while ( v1 <= getWidth() )
32. {
33. g.drawLine( v1, v2, v1 + startingl, v2 );
34. v1 += startingl;
35.
36. g.drawLine( v1, v2, v1, v2 + startingl );
37. v2 += startingl;
38. }
39. }
40. }


I got the following error in my compiler for this driver code:

.\MyLines.java:25: cannot find symbol
symbol : method paintComponet(java.awt.Graphics)
location: class javax.swing.JPanel
super.paintComponet (g);
^
1 error