1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>JGoodies Forms :: Tutorial :: Factories</title>
<link rel="stylesheet" type="text/css" href="../style.css" >
<meta name="description" content="The JGoodies Forms helps you layout and implement elegant Panel quickly and consistently.">
<meta name="author" content="Karsten Lentzsch">
<meta name="keywords" content="JGoodies Forms Java Layout Swing UI Design Usability Lentzsch Kiel">
<meta name="robots" content="index, follow">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0" bottommargin="0" >
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td colspan="3" bgcolor="DDDCDC"><a href="../../README.html"><img
src="../images/banner.gif" width="436" height="46" alt=":: JGOODIES :: Forms" border="0"></a></td>
</tr>
<tr>
<td colspan="3" height="1" bgcolor="C9C8C8"></td>
</tr>
<tr>
<td width="160" height="500" valign="top" bgcolor="F4f3f3" class="nav" nowrap="nowrap">
<div style="margin-left: 17px; margin-top: 17px; margin-right: 10px; ; margin-bottom: 17px; line-height: 18px;">
<!-- ************ Anfang der Seitennavigation **************************** -->
<b>General</b>
<br>:: <a class="nav" href="../../README.html">Readme</a>
<br>:: <a class="nav" href="../../RELEASE-NOTES.txt">Release Notes</a>
<br>:: <a class="nav" href="../../LICENSE.txt">License</a>
<br>:: <a class="nav" href="../whitepaper.pdf">Whitepaper</a>
<br>:: <a class="nav" href="../visualbuilders.html">Visual Builders</a>
<br>:: <a class="nav" href="../references.html">References</a>
<br>:: <a class="nav" href="../tips.html">Tips & Tricks</a>
<br>:: <a class="nav" href="https://forms.dev.java.net/faq.html">FAQ</a>
<p>
<b>Tutorial</b>
<br>:: <a class="nav" href="introduction.html">Introduction</a>
<br>:: <a class="nav" href="quickstart.html">Quick Start</a>
<br>:: <a class="nav" href="basics.html">Basics</a>
<br>:: <a class="nav" href="building.html">Building</a>
<br>:: <a class="nav" href="factories.html"><b>Factories</b></a>
<p>
<b>Reference</b>
<br>:: <a class="nav" href="../reference/alignments.html">Alignments</a>
<br>:: <a class="nav" href="../reference/constantsizes.html">Constant Sizes</a>
<br>:: <a class="nav" href="../reference/componentsizes.html">Component Sizes</a>
<br>:: <a class="nav" href="../reference/boundedsizes.html">Bounded Sizes</a>
<br>:: <a class="nav" href="../reference/colsandrows.html">Cols & Rows</a>
<br>:: <a class="nav" href="../reference/cells.html">Cell Constraints</a>
<br>:: <a class="nav" href="../reference/groups.html">Groups</a>
<br>:: <a class="nav" href="../reference/variables.html">Layout Variables</a>
<p>
<a class="nav" href="../api/index.html"><b>API Docs</b></a>
<p>
<b>Web Pages</b>
<br>:: <a class="nav" href="http://forms.dev.java.net/">Project Home</a>
<br>:: <a class="nav" href="http://www.jgoodies.com/downloads/libraries.html">Downloads</a>
<br>:: <a class="nav" href="http://forms.dev.java.net/servlets/ProjectNewsList">Announcements</a>
<br>:: <a class="nav" href="http://forms.dev.java.net/servlets/ProjectMailingListList">Mailing Lists</a>
<br>:: <a class="nav" href="http://forms.dev.java.net/servlets/ProjectIssues">Issue Tracker</a>
<br>:: <a class="nav" href="http://www.jgoodies.com/freeware/">More Examples</a>
<!-- *********** Ende der Seitennavigation ******************************* -->
</div>
</td>
<td width="1" bgcolor="E7E5E5"><img src="/images/banner.gif" width="1" height="1" alt=""></td>
<td width="90%" valign="top" >
<div style="margin-left: 20px; margin-top: 17px; margin-bottom: 17px">
<!-- ************ Anfang des Inhalts ***************************************** -->
<table width="530" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<h1>:: Tutorial :: Factories ::</h1>
Forms provides factories that can create frequently used layouts, panels
and button bars. You should favor these factories over builders
to increase the consistency of your layouts and in turn applications.
<p>
<b>It is recommended to have the JGoodies Forms Demo open on your screen!</b>
<h2>ButtonBarFactory</h2>
The <tt>ButtonBarFactory</tt> vends prepared button bars for
general dialogs, wizards and in-form bars. It offers generic bars,
for example a right-aligned bar with 3 buttons, and specific bars,
for example <i>OK, Cancel, Help</i>.
See the <a href="../api/index.html">API docs</a> for details.
<h2>FormFactory</h2>
The <tt>FormFactory</tt> provides frequently used column and
row specifications.
For example <tt>FormFactory.GLUE_COLSPEC</tt> is a <tt>ColumnSpec</tt>
that represents a glue, i. e. a gap with initial size 0px that grows.
<h2>Borders</h2>
Class <tt>Borders</tt> provides a bunch of prepared and reusable
<tt>Border</tt> instances, for example <tt>EMPTY_BORDER</tt>,
<tt>DLU4_BORDER</tt> and <tt>DIALOG_BORDER</tt>.
</td>
</tr>
</table>
<!-- ************ Ende des Inhalts ************************************** -->
</div>
</td>
</tr>
<tr>
<td nowrap="nowrap" bgcolor="F4f3f3">
<div style="font-size: 10px; margin-left: 17px; margin-top: 20px; margin-right: 10px; margin-bottom: 4px;">
(c) 2009 JGoodies
</div>
</td>
<td width="1" bgcolor="E7E5E5"></td>
<td> </td>
</tr>
<tr>
<td colspan="2" height="1" bgcolor="E7E5E5"></td>
<td></td>
</tr>
</table>
</body>
</html>
|