Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Examples of more complex layouts including table and spring can be seen here:
Image Removed Image Added

The UI in this example was constructed entirely with SDL/Swing. It would require approximately 5 times the number of lines to create the same UI in Java procedurally and the results would be much harder to read.

...

No Format
form ID="Browser" {
    hpane loc="north" border="2,2,2,2" \
            preferredHeight=24 {

        "URL" border="0,5,0,3" font="strong"
        button "Clear" do="clearURL" focusPainted=false
        text "http://www.cnn.com" constraint="fill" do="browseTo" minimumSize="5,5"
        button "Go" background="dark_green" do="browseTo"
        spacer 7
        button icon="recycle" do="refresh" style="toolbar"
        spacer 5
        button icon="navigate_left" do="back" style="toolbar"
        button icon="navigate_right" do="forward" style="toolbar"
    }

    browser URL="http://cnn.com" ID="browser"
}

Image RemovedImage Added

Note: This example uses an excellent Swing friendly browser component provided by JadeLiquid.

...