Precautions for mouse Movement monitoring

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.