certianly,it's just for test.but i am wonder now,
in JDK document ,the JButton has the method inherited from Component, so it should be useful to JButton. that's the question is:
1.How to use the inherited method?
Is there any other rule in using the inherited method?
by the way,i define the class implement the mousemotionlistener, in there,i add the line:
addMouseMotionListener(JButton.this);
then you can hold the mouse motion event by the reference of JButton.