📄 11_3.htm
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Weng Kai">
<meta name="GENERATOR" content="Mozilla/4.5 [en] (Win95; I) [Netscape]">
<title>Capturing an event</title>
</head>
<body>
<h2>
11.3 Capturing an event</h2>
<hr WIDTH="100%">
<br>The basis of event-driven programming is tying events to code that
responds to those events.
<p>A handle to an Event object is passed into action() method. The
object contains the object the event happened and some other information.
Only some types of controls have a "standard action" that occurs will causes
the call to action().
<p>Case Study: <a href="case/Components/Button2.java">Button2.java</a>
<br><applet code=Button2 width=200 height=40 codebase=case/Components></applet>
<p>
<hr WIDTH="100%">
<div align=right><a href="11_4.htm">Next Page</a></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -