<?xml version="1.0" encoding="UTF-8"?>
<frame name="mainframe" size="740,480" title="Fun with SWIXML - Layouts" plaf="com.sun.java.swing.plaf.windows.WindowsLookAndFeel">
  <desktoppane>

    <internalframe Title="Flow Layout (right aligned)" Bounds="10,10,150,150" Layout="FlowLayout(FlowLayout.RIGHT)" Visible="true" Resizable="true">
      <button>1</button>
      <button>2</button>
      <button>3</button>
      <button>4</button>
    </internalframe>

    <internalframe Title="Grid Layout" Bounds="200,10,150,150" Layout="GridLayout(2,2)" Visible="true" Resizable="true">
      <button text="1"/>
      <button text="2"/>
      <button text="3"/>
      <button text="4"/>
    </internalframe>

    <internalframe Title="Border Layout" Bounds="390,10,150,150" Layout="borderlayout" Visible="true" Resizable="true">
      <button constraints="BorderLayout.NORTH">1</button>
      <button constraints="BorderLayout.EAST">2</button>
      <button constraints="BorderLayout.SOUTH">3</button>
      <button constraints="BorderLayout.WEST">4</button>
    </internalframe>

    <internalframe Title="Vertical Box" Bounds="10,170,150,210" Visible="true" Resizable="true">
      <vbox>
        <button text="1"/>
        <button text="2"/>
        <button text="3"/>
        <glue/>
        <button text="4"/>
      </vbox>
    </internalframe>

    <internalframe Title="Horizontal Box" Bounds="180,170,200,180" Visible="true" Resizable="true">
      <hbox border="TitledBorder(A Titled Border)">
        <button text="1"/>
        <button text="2"/>
        <button text="3"/>
        <glue/>
        <button text="4"/>
      </hbox>
    </internalframe>

    <internalframe Title="Gridbag Layout" Bounds="400,170,220,210" Layout="GridBagLayout" Visible="true" Resizable="true">
      <button text="Wonderful">
        <gridbagconstraints id="gbc_1" insets="2,2,2,2" gridx="0" gridy="0" ipadx="15" ipady="15" weightx="1" weighty="1"/>
      </button>
      <button text="World">
        <gridbagconstraints refid="gbc_1" gridx="1"/>
      </button>
      <button text="of">
        <gridbagconstraints refid="gbc_1" gridy="1"/>
      </button>
      <button text="Swixml">
        <gridbagconstraints refid="gbc_1" gridx="1" gridy="1"/>
      </button>
    </internalframe>

  </desktoppane>
</frame>