<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to FormLayout</title><link>https://sourceforge.net/p/openpatrician/wikimig/FormLayout/</link><description>Recent changes to FormLayout</description><atom:link href="https://sourceforge.net/p/openpatrician/wikimig/FormLayout/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 24 May 2014 07:22:21 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/openpatrician/wikimig/FormLayout/feed" rel="self" type="application/rss+xml"/><item><title>FormLayout modified by Sahits GmbH</title><link>https://sourceforge.net/p/openpatrician/wikimig/FormLayout/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="form-layout"&gt;Form layout&lt;/h1&gt;
&lt;p&gt;&amp;lt; &lt;span&gt;[Concepts]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;In OpenPatrician two different layouts are used. On in the game itself and the other when used with game administration tasks (New game, load game, save game, options, ...). This page describes the latter layout. &lt;/p&gt;
&lt;p&gt;These task are typically form related. Therefore the &lt;a class="" href="../LookAndFeel"&gt;OpenPatrician Look&amp;amp;Feel&lt;/a&gt; is used. This Look&amp;amp;Feel differs evidently from the standard Java Look&amp;amp;Feels. The most prominent aspect is sizing which may pose problems when laying the components out. As OpenPatrician is a full screen game we must not be concerned with resizing. The only problem is "Are all components on the screen or not?". The problem with the OpenPatrician Look and Feel is that it does not scale. Therefore the components (or at least some of the components) have a fixed size. For these reasons the following approach is chosen: &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Put the component in ScrollPane &lt;/li&gt;
&lt;li&gt;Use a layout that does not resize the components &lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="maximalgridlayout"&gt;MaximalGridLayout&lt;/h2&gt;
&lt;p&gt;This is the layout to use for this purpose. Basically it is a GridLayout but with some distinctive differences: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The width of a column is defined by the width of the widest component in the column &lt;/li&gt;
&lt;li&gt;The height of a row is defined by the height of the highest component in the row &lt;/li&gt;
&lt;li&gt;The components are not resized to fill the whole grid cell &lt;/li&gt;
&lt;li&gt;With a Layout constraint the component can have a defined anchor point (analog GridBagLayout) by default this is center. &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sahits GmbH</dc:creator><pubDate>Sat, 24 May 2014 07:22:21 -0000</pubDate><guid>https://sourceforge.net3458b2e781847068c3151b2adcc8942b0fc193f1</guid></item></channel></rss>