📄 11_2.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>Making a button</title>
</head>
<body>
<h2>
11.2 Making a button</h2>
<hr WIDTH="100%">
<br>You just call the Button constructor with the label you want on the
button. The Button is a component, you must override init() to inform
the applet a button is <i>added</i> into the applet. You needn't
care about the painting of the buttons.
<p>Case Study: <a href="case/Components/Button1.java">Button1.java</a>
<br><applet code=Button1 width=200 height=50 codebase=case/Components></applet>
<br>
<hr WIDTH="100%">
<div align=right><a href="11_3.htm">Next Page</a></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -