📄 builder_course_104_1_gjbc.html
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ChinaByte--网络学院--课程</title>
<style type="text/css">
<!--
.a { font-size: 11pt}
-->
</style>
<meta name="Microsoft Border" content="tl, default"></head>
<body><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>
<p align="center"><font size="6"><strong></strong></font><br>
</p>
<p align="center"> </p>
</td></tr><!--msnavigation--></table><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top" width="1%">
</td><td valign="top" width="24"></td><!--msnavigation--><td valign="top">
<table border="0" width="750" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" width="100" align="center" valign="middle">
<a href="../tppmsgs/msgs1.htm#185" tppabs="http://www.chinabyte.com/staticpages/home/chinabyte_home/home/chinabyte_home_1.html" onMouseOver="window.status='中文全球电脑科技咨询网';return true" target="_top"><img src="../main/images/cb_logo.gif" tppabs="http://www.chinabyte.com/images/cb_logo.gif" alt="ChinaByte" width="78" height="68" border="0"></a></td>
<td width="470" align="left" valign="top">
<!-- AdSpace channel=builder site=chinabyte position=1 width=468 height=60-->
<iframe WIDTH="468" HEIGHT="60" MARGINWIDTH="0" MARGINHEIGHT="0" HSPACE="0" VSPACE="0" FRAMEBORDER="0" SCROLLING="no" BORDERCOLOR="#000000" SRC="../tppmsgs/msgs1.htm#187" tppabs="http://ad.chinabyte.com:82/html.ng/channel=builder&site=chinabyte&position=1">
<script LANGUAGE="JavaScript1.1" SRC="../tppmsgs/msgs1.htm#189" tppabs="http://ad.chinabyte.com:82/js.ng/Params.richmedia=yes&channel=builder&site=chinabyte&position=1">
</script>
<noscript>
<a HREF="../tppmsgs/msgs1.htm#190" tppabs="http://ad.chinabyte.com:82/click.ng/Params.richmedia=yes&channel=builder&site=chinabyte&position=1">
<img SRC="../ad.chinabyte.com/Ads/gb_loop/left.gif" tppabs="http://ad.chinabyte.com:82/image.ng/Params.richmedia=yes&channel=builder&site=chinabyte&position=1">
</a>
</noscript>
</iframe>
<!-- /AdSpace -->
</td>
<td rowspan="2" width="180" align="center" valign="middle"><a href="../tppmsgs/msgs1.htm#195" tppabs="http://www.cseek.com/"><img src="../main/images/cseek.gif" tppabs="http://www.chinabyte.com/images/cseek.gif" border="0" WIDTH="130" HEIGHT="44"></a></td>
</tr>
<tr>
<td align="left" valign="top"><font size="-1">1999 年 5 月 28 日 <a href="../tppmsgs/msgs1.htm#197" tppabs="http://www.chinabyte.com/market/index.html">如何刊登广告</a></font></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#980018">
<tr>
<td width="30" bgcolor="#980018"><img src="../main/images/blank.gif" tppabs="http://www.chinabyte.com/images/blank.gif" border="0" width="1" height="1"></td>
<td><img src="../main/images/b_1.gif" tppabs="http://www.chinabyte.com/images/b_1.gif" WIDTH="10" HEIGHT="27"><img src="../main/images/b_2.gif" tppabs="http://www.chinabyte.com/images/b_2.gif" WIDTH="11" HEIGHT="27"><a HREF="../tppmsgs/msgs2.htm#200" tppabs="http://www.chinabyte.com/staticpages/digest/digest_home/digest/digest_home_1.html" onMouseOver="window.status = '及时传送IT产业新闻'; return true" target="_top"><img src="../main/images/99news.gif" tppabs="http://www.chinabyte.com/images/99news.gif" border="0" alt="新闻总线" WIDTH="53" HEIGHT="27"></a></td>
<td> <img src="../main/images/b_1.gif" tppabs="http://www.chinabyte.com/images/b_1.gif" WIDTH="10" HEIGHT="27"><img src="../main/images/b_2.gif" tppabs="http://www.chinabyte.com/images/b_2.gif" WIDTH="11" HEIGHT="27"><a HREF="../tppmsgs/msgs2.htm#202" tppabs="http://www.chinabyte.com/staticpages/software/software_home/software/software_home_1.html" onMouseOver="window.status = '漫步免费软件仓库'; return true" target="_top"><img src="../main/images/99soft.gif" tppabs="http://www.chinabyte.com/images/99soft.gif" border="0" alt="软件仓库" WIDTH="52" HEIGHT="27"></a></td>
<td> <img src="../main/images/b_1.gif" tppabs="http://www.chinabyte.com/images/b_1.gif" WIDTH="10" HEIGHT="27"><img src="../main/images/b_2.gif" tppabs="http://www.chinabyte.com/images/b_2.gif" WIDTH="11" HEIGHT="27"><a HREF="../tppmsgs/msgs2.htm#204" tppabs="http://www.chinabyte.com/staticpages/builder/builder_home/builder/builder_home_1.html" onMouseOver="window.status = '在线专业培训'; return true" target="_top"><img src="../main/images/99_builder.gif" tppabs="http://www.chinabyte.com/images/99_builder.gif" border="0" alt="网络学院" WIDTH="52" HEIGHT="27"></a></td>
<td> <img src="../main/images/b_1.gif" tppabs="http://www.chinabyte.com/images/b_1.gif" WIDTH="10" HEIGHT="27"><img src="../main/images/b_2.gif" tppabs="http://www.chinabyte.com/images/b_2.gif" WIDTH="11" HEIGHT="27"><a HREF="../tppmsgs/msgs2.htm#213" tppabs="http://www.chinabyte.com/staticpages/gamecen/gamecen_home/gamecen/gamecen_home_1.html" onMouseOver="window.status = '游戏玩家的乐园'; return true" target="_top"><img src="../main/images/99game.gif" tppabs="http://www.chinabyte.com/images/99game.gif" border="0" alt="游戏天堂" WIDTH="52" HEIGHT="27"></a></td>
<td><img src="../main/images/b_1.gif" tppabs="http://www.chinabyte.com/images/b_1.gif" WIDTH="10" HEIGHT="27"><img src="../main/images/b_2.gif" tppabs="http://www.chinabyte.com/images/b_2.gif" WIDTH="11" HEIGHT="27"><a HREF="../tppmsgs/msgs2.htm#214" tppabs="http://www.chinabyte.com/staticpages/digital/digital_home/digital/digital_home_1.html" onMouseOver="window.status = '数字世界'; return true" target="_top"><img src="../main/images/99digital.gif" tppabs="http://www.chinabyte.com/images/99digital.gif" border="0" alt="数字世界" WIDTH="53" HEIGHT="27"></a></td>
<td width="140" bgcolor="#980018"><img src="../main/images/blank.gif" tppabs="http://www.chinabyte.com/images/blank.gif" border="0" width="1" height="1"></td>
<td width="45"><a HREF="../tppmsgs/msgs2.htm#215" tppabs="http://www.chinabyte.com/staticpages/newsletter/newsletter_home/newsletter/newsletter_home_1.html" onMouseOver="window.status = '新闻邮件'; return true" target="_top"><img src="../main/images/99letter.gif" tppabs="http://www.chinabyte.com/images/99letter.gif" border="0" alt="新闻邮件" WIDTH="24" HEIGHT="27"></a></td>
<td width="45"><img src="../main/images/99groups.gif" tppabs="http://www.chinabyte.com/images/99groups.gif" border="0" alt="讨论讨论" WIDTH="24" HEIGHT="27"></td>
<td width="45"><a HREF="../tppmsgs/msgs2.htm#216" tppabs="http://www.chinabyte.com/staticpages/glossary/glossary_home/glossary/glossary_home_1.html" onMouseOver="window.status = '技术辞典'; return true" target="_top"><img src="../main/images/99glossary.gif" tppabs="http://www.chinabyte.com/images/99glossary.gif" border="0" alt="技术词典" WIDTH="24" HEIGHT="27"></a></td>
<td width="45"><a href="../tppmsgs/msgs2.htm#217" tppabs="http://www.chinabyte.com/feedback/partner.html"><img src="../main/images/99partner.gif" tppabs="http://www.chinabyte.com/images/99partner.gif" border="0" alt="合作伙伴" WIDTH="16" HEIGHT="27"></a></td>
<td bgcolor="ffffff"><img src="../main/images/b_right.gif" tppabs="http://www.chinabyte.com/images/b_right.gif" WIDTH="20" HEIGHT="27"></td>
</tr>
</table>
<table width="750" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="6" align="left" valign="top">
</td>
</tr>
<tr>
<td width="10" rowspan="3"><img src="../main/images/blank.gif" tppabs="http://www.chinabyte.com/images/blank.gif" border="0" width="10" height="1">
</td>
<td width="106" rowspan="3" align="left" valign="top">
<img src="../images/flower1.gif" tppabs="http://www.chinabyte.com/builder/images/flower1.gif" border="0" WIDTH="82" HEIGHT="81"><img src="../images/flower2.gif" tppabs="http://www.chinabyte.com/builder/images/flower2.gif" border="0" WIDTH="24" HEIGHT="81"><br>
<a HREF="../tppmsgs/msgs2.htm#221" tppabs="http://www.chinabyte.com/staticpages/builder/builder_schedule/CLBD/builder_schedule_CLBD_0_20.html" onMouseOver="window.status = '冲浪宝典'; return true" target="_top"><img src="../images/wbook.gif" tppabs="http://www.chinabyte.com/builder/images/wbook.gif" border="0" alt="冲浪宝典" WIDTH="82" HEIGHT="22"></a><img src="../images/ball.gif" tppabs="http://www.chinabyte.com/builder/images/ball.gif" border="0" WIDTH="24" HEIGHT="22"><br>
<a HREF="../tppmsgs/msgs2.htm#224" tppabs="http://www.chinabyte.com/staticpages/builder/builder_schedule/YJDG/builder_schedule_YJDG_0_20.html" onMouseOver="window.status = '硬件导购'; return true" target="_top"><img src="../images/whard.gif" tppabs="http://www.chinabyte.com/builder/images/whard.gif" border="0" alt="硬件导购" WIDTH="82" HEIGHT="30"></a><br>
<a HREF="../tppmsgs/msgs2.htm#227" tppabs="http://www.chinabyte.com/staticpages/builder/builder_schedule/CNLY/builder_schedule_CNLY_0_20.html" onMouseOver="window.status = '菜鸟乐园'; return true" target="_top"><img src="../images/weden.gif" tppabs="http://www.chinabyte.com/builder/images/weden.gif" border="0" alt="菜鸟乐园" WIDTH="82" HEIGHT="30"></a><br>
<a HREF="../tppmsgs/msgs2.htm#228" tppabs="http://www.chinabyte.com/staticpages/builder/builder_schedule/YMGC/builder_schedule_YMGC_0_20.html" onMouseOver="window.status = '页面工场'; return true" target="_top"><img src="../images/wpage.gif" tppabs="http://www.chinabyte.com/builder/images/wpage.gif" border="0" alt="页面工场" WIDTH="82" HEIGHT="30"></a><br>
<a HREF="../tppmsgs/msgs2.htm#229" tppabs="http://www.chinabyte.com/staticpages/builder/builder_schedule/TXSJ/builder_schedule_TXSJ_0_20.html" onMouseOver="window.status = '图像设计'; return true" target="_top"><img src="../images/wimage.gif" tppabs="http://www.chinabyte.com/builder/images/wimage.gif" border="0" alt="图像设计" WIDTH="82" HEIGHT="30"></a><br>
<a HREF="../tppmsgs/msgs2.htm#230" tppabs="http://www.chinabyte.com/staticpages/builder/builder_schedule/GJBC/builder_schedule_GJBC_0_20.html" onMouseOver="window.status = '高级编程'; return true" target="_top"><img src="../images/ypro.gif" tppabs="http://www.chinabyte.com/builder/images/ypro.gif" border="0" alt="高级编程" WIDTH="82" HEIGHT="30"></a><br>
<a HREF="../tppmsgs/msgs2.htm#239" tppabs="http://www.chinabyte.com/staticpages/builder/builder_schedule/XTGL/builder_schedule_XTGL_0_20.html" onMouseOver="window.status = '系统管理'; return true" target="_top"><img src="../images/wsys.gif" tppabs="http://www.chinabyte.com/builder/images/wsys.gif" border="0" alt="系统管理" WIDTH="82" HEIGHT="30"></a><br>
<a HREF="../tppmsgs/msgs2.htm#241" tppabs="http://www.chinabyte.com/staticpages/builder/builder_schedule/DZSW/builder_schedule_DZSW_0_20.html" onMouseOver="window.status = '电子商务'; return true" target="_top"><img src="../images/wbusi.gif" tppabs="http://www.chinabyte.com/builder/images/wbusi.gif" border="0" alt="电子商务" WIDTH="82" HEIGHT="30"></a><br>
<a HREF="../tppmsgs/msgs2.htm#243" tppabs="http://www.chinabyte.com/staticpages/builder/builder_schedule/SSJS/builder_schedule_SSJS_0_20.html" onMouseOver="window.status = '时尚技术'; return true" target="_top"><img src="../images/wfash.gif" tppabs="http://www.chinabyte.com/builder/images/wfash.gif" border="0" alt="时尚技术" WIDTH="82" HEIGHT="30"></a><br>
<img src="../images/wsoft.gif" tppabs="http://www.chinabyte.com/builder/images/wsoft.gif" border="0" alt="软件下载" WIDTH="82" HEIGHT="30"><br>
<img src="../images/wgroups.gif" tppabs="http://www.chinabyte.com/builder/images/wgroups.gif" border="0" alt="请赐一招" WIDTH="82" HEIGHT="30"><br>
<a HREF="../tppmsgs/msgs2.htm#246" tppabs="http://www.chinabyte.com/staticpages/builder/builder_list/builder/builder_list_1.html" onMouseOver="window.status = '课程总表'; return true" target="_top"><img src="../images/wlist.gif" tppabs="http://www.chinabyte.com/builder/images/wlist.gif" border="0" alt="课程总表" WIDTH="82" HEIGHT="30"></a><br>
<a HREF="../tppmsgs/msgs2.htm#248" tppabs="http://www.chinabyte.com/staticpages/builder/builder_feedback/builder/builder_feedback_1.html" onMouseOver="window.status = '编读往来'; return true" target="_top"><img src="../images/wfeed.gif" tppabs="http://www.chinabyte.com/builder/images/wfeed.gif" border="0" alt="编读往来" WIDTH="82" HEIGHT="30"></a><br>
<img src="../images/bline.gif" tppabs="http://www.chinabyte.com/builder/images/bline.gif" border="0" WIDTH="82" HEIGHT="11"><p><p>
</td>
<td width="400" align="left" valign="top"><img src="../images/flower_r.gif" tppabs="http://www.chinabyte.com/builder/images/flower_r.gif" WIDTH="19" HEIGHT="51"><br>
<font class="a"><center><b>Java应 用 教 程 (二 )—— 巧 手 木 匠</b></center><p>纲 要 :<br> 介 绍 做 窗 户 的 巧 手 木 匠 一 族 。 </font>
</td>
<td width="20"><img src="../main/images/blank.gif" tppabs="http://www.chinabyte.com/images/blank.gif" border="0" width="20" height="1">
</td>
<td width="204" align="left" valign="top"><br>
<font class="a"><center><b>目 录</b></center></font><p>
<ul>
<font class="a"><li>窗 口 外 观 的 管 理 —— 类 FlowLayout ( 1997-12-16 )</font>
<font class="a"><li><a href="builder_course_104_2_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_104_2_GJBC.html">窗 口 外 观 的 管 理 —— 类 GridLayout</a> ( 1997-12-16 )</font>
<font class="a"><li><a href="builder_course_104_3_GJBC.html" tppabs="http://www.chinabyte.com/staticpages/builder/builder_course/GJBC/builder_course_104_3_GJBC.html">窗 口 外 观 的 管 理 —— 类 GridBagLayout</a> ( 1998-01-13 )</font>
</ul>
</td>
<td width="10" rowspan="3"><img src="../main/images/blank.gif" tppabs="http://www.chinabyte.com/images/blank.gif" border="0" width="10" height="1">
</td>
</tr>
<tr>
<td colspan="3" align="left" valign="top">
<hr>正 文:<br>
<font class="a"><center><b>窗 口 外 观 的 管 理 —— 类 FlowLayout</b></center><p align="right">作 者 : 清 华 大 学 : 王 克 宏 教 授<p><p>
用 类 FlowLayout 生 成 的 外 观 管 理 器 是 AWT 为 类 Panel 所 设 计 的 外 观 管 理 器 。 它 是 我 们 所 使 用 的 默 认 的 外 观 管 理 器 。
<img src="../images/java8.gif" tppabs="http://www.chinabyte.com/builder/images/java8.gif" width="70" height="78" align="left" vspace="10" hspace="10" border="0">
“ 默 认 的 外 观 管 理 器 ” 的 意 思 就 是 说 当 我 们 没 有 在 程 序 之 中 使 用 其 他 的 外 观 管 理 器 ( 如 CardLayout 、 等 ) 的 时 候 , Java 就 自 动 地 使 用 FlowLayout 外 观 管 理 器 进 行 一 系 列 的 外 观 管 理 工 作 。 像 我 们 前 面 的 程 序 13.1 ( 白 手 起 家 程 序 ) 就 是 使 用 的 FlowLayout 来 进 行 外 观 管 理 的 。
<p><img src="../main/images/blank.gif" tppabs="http://www.chinabyte.com/images/blank.gif" width="30" height="1" border="0">
从 程 序 13.1 我 们 应 该 已 经 看 出 来 了 , FlowLayout 外 观 管 理 器 所 做 的 就 是 把 程 序 之 中 的 各 个 组 件 对 象 按 照 先 后 顺 序 依 次 排 开 , 从 左 到 右 , 从 上 到 下 , 依 次 地 排 。<p><img src="../main/images/blank.gif" tppabs="http://www.chinabyte.com/images/blank.gif" width="30" height="1" border="0">
又 例 如 :<p><img src="../main/images/blank.gif" tppabs="http://www.chinabyte.com/images/blank.gif" width="30" height="1" border="0">
程 序 14.3<p>
import java.awt.*;<br>
public class window5 extends java.applet.Applet<br>
{<br>
public void init( ) {<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -