当某个事件发生的时候,干什么
ActionListener
new TextField().setEchoChar('*');设置输入密码为*显示
OOP原则,组合大于继承,一个类中的属性设置为另一个类