⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 12_1.htm

📁 翁剀JAVA语言那门课程的教案 很多人都看多他的视频教程可惜没有ppt的教案
💻 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>FlowLayout</title>
</head>
<body>

<h2>
12.1 FlowLayout</h2>

<hr WIDTH="100%">
<br>So far, all the applets that have been created seem to have laid out
their components using some mysterious internal logic. That's because the
applet uses a default layout scheme: the FlowLayout. This simply "flows"
the components onto the form, from left to right until the top space is
full, then moves down a row and continues flowing the components. Here's
an example that explicitly (redundantly) sets the layout manager in an
applet to FlowLayout and then places buttons on the form. You'll notice
that with FlowLayout the components take on their "natural" size. A Button,
for example, will be the size of its string.
<p>Case Study: <a href="case/Layout/FlowLayout1.java">FlowLayout1.java</a>
<p><applet code=FlowLayout1 width=200 height=250 codebase=case/Layout></applet>
<br>All components will be compacted to their smallest size in a FlowLayout,
so you might get a little bit of surprising behavior. For example, a label
will be the size of its string, so right-justifying it yields an unchanged
display.
<br>
<hr WIDTH="100%">
<div align=right><a href="12_2.htm">Next Page</a></div>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -