Remove <
from this line <import javax.swing.JApplet;
and if OdometerPanel
is not in seprate file then move to top the following lines of code
import javax.swing.JPanel;
import java.awt.Font;
import java.awt.Graphics;
oh missed this one
Remove the >
from this line }>