📄 12_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>GridLayout</title>
</head>
<body>
<h2>
12.3 GridLayout</h2>
<hr WIDTH="100%">
<br>A GridLayout allows you to build a table of components, and as you
add them they are placed left-to-right and top-to-bottom in the grid. In
the constructor you specify the number of rows and columns that you need
and these are laid out in equal proportions.
<p>Case Study: <a href="case/Layout/GridLayout1.java">GridLayout1.java</a>
<p><applet code=GridLayout1 width=200 height=200 codebase=case/Layout></applet>
<br>In this case there are 21 slots but only 20 buttons. The last slot
is left empty; no "balancing" goes on with a GridLayout.
<br>
<hr WIDTH="100%">
<div align=right><a href="12_4.htm">Next Page</a></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -