class timerTestPanel extends JPanel implements ActionListener
{
    public timerTestPanel()
    {
        int barLength=0;
    }    public void actionPerformed(ActionEvent evt)
    {
        repaint();
    }    public void paintComponent(Graphics g)
    {
super.paintComponent(g);//Add this line
        barLength++;
        g.fillRect(0,0,barLength,barWidth);
    }    private final int barWidth=20;    //??????.??????.
    private int barLength;    //??????,?????????.??????.}