SWTML (SWT Markup Language)

SWTML is XML driven GUI building Java library for SWT (Standard Widget Toolkit).

Features:


Information:




Hello World example:
  1. Download the SWTML and dependent jars and add to application's classpath.
  2. Create a XML file with SWT Shell and a Label.
    hello-world.xml :

    <?xml version="1.0" encoding="UTF-8"?>
    <shell text="My Application" style="SWT.SHELL_TRIM">
    <fill-layout/>
    <label text="Hello World" />
    </shell>
     
  3. Use com.sheelapps.swtml.SWTParser to parse hello-world.xml to create Shell widget.

            Display display = Display.getDefault();
             try {
                 com.sheelapps.swtml.SWTParser parser = new com.sheelapps.swtml.SWTParser();
                 Shell shell = (Shell) parser.doParse(HelloWorld.class.getResourceAsStream("/com/sheelapps/swtml/examples/hello-world.xml"));
                 shell.open();
                 while (!shell.isDisposed()) {
                    if (!display.readAndDispatch())
                    display.sleep();
                }
                display.dispose();
            } catch (Exception e) {
                e.printStackTrace();
            }
           
     

SWTML is free for non-commercial use.

SWTML Widgets

Browser
javadoc - SWTML
Button (SWT.ARROW)
javadoc - SWTML
Button (SWT.CHECK)
javadoc - SWTML
Button (SWT.PUSH)
javadoc - SWTML
Button (SWT.RADIO)
javadoc - SWTML
Button (SWT.TOGGLE)
javadoc - SWTML
Canvas
javadoc - SWTML
Combo
javadoc - SWTML
Composite
javadoc - SWTML
CoolBar
javadoc - SWTML
CTabFolder
javadoc - SWTML
DateTime
javadoc - SWTML
ExpandBar
javadoc - SWTML
Group
javadoc - SWTML
Label
javadoc - SWTML
Link
javadoc - SWTML
List
javadoc - SWTML
Menu
javadoc - SWTML
ProgressBar
javadoc - SWTML
Sash
javadoc - SWTML
ScrolledComposite
javadoc - SWTML
Shell
javadoc - SWTML
Slider
javadoc - SWTML
Scale
javadoc - SWTML
Spinner
javadoc - SWTML
StyledText
javadoc - SWTML
TabFolder
javadoc - SWTML
Table
javadoc - SWTML
Text (SWT.SINGLE)
javadoc - SWTML
Text (SWT.MULTI)
javadoc - SWTML
ToolBar
javadoc - SWTML
Tree
javadoc - SWTML