hie i have some issue with my JAVA code anyone can help me ,,,


package virat;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;

public class gui extends JFrame{
private JPanel mousepanel;
private JLabel statusbar;

public gui(){
super("mouse action learning");

mousepanel = new JPanel();
mousepanel.setBackground(Color.WHITE);
add(mousepanel,BorderLayout.CENTER);

statusbar=new JLabel("default");
add(statusbar,BorderLayout.SOUTH);

Handlerclass handler = new Handlerclass();
mousepanel.addMouseListener(handler);
mousepanel.addMouseMotionListener(handler);

private class Handlerclass implements MouseListener,MouseMotionListener{

public void mouseClicked(MouseEvent event){
statusbar.setText(String.format("you clicked at %d,%d", getX(),getY()));
}
public void mousePressed(MouseEvent event){
statusbar.setText("you pressed mouse");
}
public void mouseReleased(MouseEvent event){
statusbar.setText("you released mouse");
}
public void mouseEntered(MouseEvent event){
statusbar.setText("mouse enterd in panel");
mousepanel.setBackground(Color.RED);
}
public void mouseExited(MouseEvent event){
statusbar.setText("mouse exited from panle");
mousepanel.setBackground(Color.WHITE);
}
public void mouseDragged(MouseEvent event){
statusbar.setText("you are dragging the mouse");
}
public void mouseMoved(MouseEvent event){
statusbar.setText("you are moving mouse");
}
}
}


}