Java课件LESSON 13 - Event.ppt


文档分类:IT计算机 | 页数:约45页 举报非法文档有奖
1/45
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/45
文档列表 文档介绍
1
LESSON 13: Event & Swing
吴砥 ******@hust.
Department of Electronics & Information Engineering,
Huazhong University of Science & Technology,
Wuhan, .
.
2
Outline
The package
Event processing
Swing
3
The Package
4
The interfaces in
ActionListener
AdjustmentListener
AWTEventListener
ComponentListener
ContainerListener
FocusListener
HierarchyBoundsListener
HierarchyListener
InputMethodListener
ItemListener
KeyListener
MouseListener
MouseMotionListener
MouseWheelListener
TextListener
WindowFocusListener
WindowListener
WindowStateListener
5
The classes in
ActionEvent
AdjustmentEvent
AWTEventListenerProxy
ComponentAdapter
ComponentEvent
ContainerAdapter
ContainerEvent
FocusAdapter
FocusEvent
HierarchyBoundsAdapter
HierarchyEvent
InputEvent
InputMethodEvent
InvocationEvent
ItemEvent
KeyAdapter
KeyEvent
MouseAdapter
MouseEvent
MouseMotionAdapter
MouseWheelEvent
PaintEvent
TextEvent
WindowAdapter
WindowEvent
7
Event Processing
8
The process of event handling
9
The types of AWT events
Low-level ponentEvent
ContainerEvent
WindowEvent
FocusEvent
KeyEvent
MouseEvent
High-level events
ActionEvent
AdjustmentEvent
ItemEvent
TextEvent
10
Window events
A low-level event that indicates that a window has changed its status. This low-level event is generated by a Window object when it is opened, closed, activated, deactivated, iconified, or deiconified, or when focus is transfered into or out of the Window.
The class WindowEvent
Methods:
getOldState()
getNewState()
getWindow()

Java课件LESSON 13 - Event 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数45
  • 收藏数0 收藏
  • 顶次数0
  • 上传人aluyuw1
  • 文件大小453 KB
  • 时间2018-02-01