[Mouse, Keyboard] mouse clicked与 mouse pressed, a key-pressed event, a key-typed event, and a key-released
1.mouseclicked与mousepressed的区别前者是在同一个位置press和release才触发事件,执行操作.如果在用户一个位置按下鼠标后改变了主意,则移动到另一个位置(按钮外面)放开就会取消操作(不执行操作).而后者只是触发press事件,也就是说按下鼠标就执行操作2.Thetextfieldfiresthreeevents:akey-pressedevent,akey-type