Mouse movement is a high-level action, can not use MouseListener and to use Mousemotionlistener
Other small points of knowledge:
Amount: Use BigDecimal without double
The center of the form is displayed: F.setlocationrelativeto (null);
F.seticonimage (arg0);//Set the form default icon
Random number:
1.
The Math.random () method is a method that can produce a double-precision floating-point number within the [0.0,1.0] Interval
Produces an integer within 100: int x= (int) (Math.random () *100);
2.
Random random = new random ();
Produce an integer Within (1-100): int x=random.nextint (100) +1//[0,99)
HashMap Bottom is an array-linked list implementation
HashMap, ArrayList, HashSet, Properties commonly used
This article is from the "Once Yi Nan Podcast" blog, please be sure to keep this source http://zengyinan.blog.51cto.com/9524976/1716314
Precautions for mouse Movement monitoring