I have a  main class implements MouseListener and a TimerTask inside this class.How can i run this code inside MouseEnter event .I mean when mouse over the frame Timer task will exacute specified times  (I am so sory for my english )

public class NewClass extends JPanel implements MouseListener {

 public NewClass() {
    JFrame frame=new JFrame();
    addMouseListener(this);
    Timer t=new Timer();
    TimerTask task=new TimerTask() {

        @Override
        public void run() {
             System.out.println("heloo");
        }
    };
   t.schedule(task, 1000);


     }


@Override
public void mouseEntered(MouseEvent me) {

}


public static  void main(String[]args){

    JFrame frame=new JFrame();
    frame.add(new NewClass());
    frame.setSize(300,300);
    frame.setVisible(true);
}

}



Question: Esoteric Programming Languages - Acceptable or Discouraged?
Answer: There would be absolutely no reason to specifically discourage any language or family of languages. If you have questions on any language that would qualify as an esoteric language, feel free to ask them.

Esoteric languages are part of Stack Overflow as every other language, two of them (Python and Ruby1) are even featured in SO's 404 polyglot: 



1 If you are a Pythonista or a Rubyist and feel like chopping my head off, just replace that with C and Perl.