« Who invented Facebook | Main | Colorspace 1.5, Layout 3.2, FX 3.2 and Darkstar 20070905 »

MiGLayout forms

miglayout.jfc
<layout class="net.miginfocom.swing.MigLayout">
	<component class="javax.swing.JLabel" text="First Name"/>
	<component class="javax.swing.JTextField" id="firstname">
		<property name="columns" value="15" type="int"/>
	</component>
	<component class="javax.swing.JLabel" text="Surname" constraint="gap unrelated"/>
	<component class="javax.swing.JTextField" id="surname" constraint="wrap">
		<property name="columns" value="15" type="int"/>
	</component>
	<component class="javax.swing.JLabel" text="Address"/>
	<component class="javax.swing.JTextField" id="address" constraint="span, growx"/>
	<component class="javax.swing.JButton" id="submit" text="Submit"/>
</layout>

miglayout_advanced.jfc
<layout class="net.miginfocom.swing.MigLayout">
	<component class="javax.swing.JLabel" text="General" constraint="split, span, gaptop 10"/>
	<component class="javax.swing.JSeparator" constraint="growx, wrap, gaptop 10"/>
	<component class="javax.swing.JLabel" text="Company" constraint="gap 10"/>
	<component class="javax.swing.JTextField" constraint="span, growx"/>
	<component class="javax.swing.JLabel" text="Contact" constraint="gap 10"/>
	<component class="javax.swing.JTextField" constraint="span, growx, wrap"/>
	<component class="javax.swing.JLabel" text="Propeller" constraint="split, span, gaptop 10"/>
	<component class="javax.swing.JSeparator" constraint="growx, wrap, gaptop 10"/>
	<component class="javax.swing.JLabel" text="PTI/kW" constraint="gap 10"/>
	<component class="javax.swing.JTextField">
		<property name="columns" value="10" type="int"/>
	</component>
	<component class="javax.swing.JLabel" text="Power/kW" constraint="gap 10"/>
	<component class="javax.swing.JTextField" constraint="wrap">
		<property name="columns" value="10" type="int"/>
	</component>
	<component class="javax.swing.JLabel" text="R/mm" constraint="gap 10"/>
	<component class="javax.swing.JTextField">
		<property name="columns" value="10" type="int"/>
	</component>
	<component class="javax.swing.JLabel" text="D/mm" constraint="gap 10"/>
	<component class="javax.swing.JTextField">
		<property name="columns" value="10" type="int"/>
	</component>
</layout>

MiG Layout



TrackBack

TrackBack URL for this entry:
http://www.installer.teppefall.com/movabletype/mt-tb.cgi/152

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

This website is all about alpha and beta software

Download non-beta software here