S3B2 UI using SWTML :
<?xml version="1.0" encoding="UTF-8"?> <!-- public static void main(String[] args) { Display display = Display.getDefault(); try { SWTParser parser = new SWTParser(); Shell shell = (Shell) parser.doParse(SomeClass.class.getResourceAsStream( "/com/sheelapps/swtml/examples/s3b2.xml")); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } catch (Exception e) { e.printStackTrace(); } } --> <shell text="S3B2" style="SWT.SHELL_TRIM"> <font name="Helvetica" size="10" style="SWT.BOLD" id="helv10" /> <grid-layout /> <menu-bar> <menu style="SWT.BAR"> <menu-item style="SWT.CASCADE" text="File"> <menu style="SWT.DROP_DOWN"> <menu-item text="Connect.." /> <menu-item text="Preferences.." /> <menu-item style="SWT.SEPARATOR" /> <menu-item text="E&xit" /> </menu> </menu-item> <menu-item style="SWT.CASCADE" text="Extensions"> <menu style="SWT.DROP_DOWN"> <menu-item text="Reload" /> <menu-item style="SWT.SEPARATOR" /> </menu> </menu-item> </menu> </menu-bar> <sash-form style="SWT.VERTICAL"> <grid-data h-align="SWT.FILL" v-align="SWT.FILL" h-grab="true" v-grab="true" /> <composite> <sash-form> <fill-layout /> <composite style="SWT.BORDER" id="localComp"> <grid-layout /> <tool-bar style="SWT.BORDER"> <grid-data h-align="SWT.FILL" h-grab="true" /> <tool-item text="Back" toolTipText="Back one Directory" /> <tool-item text="Upload" toolTipText="Upload.." /> <tool-item text="Refresh" toolTipText="Refresh" /> </tool-bar> <text style="SWT.BORDER" id="localAddressBar"> <grid-data h-align="SWT.FILL" h-grab="true" /> </text> <table style="SWT.BORDER | SWT.V_SCROLL" headerVisible="true" id="localTable"> <grid-data h-align="SWT.FILL" v-align="SWT.FILL" h-grab="true" v-grab="true" /> <menu style="SWT.DROP_DOWN"> <menu-item text="Open.." /> <menu-item text="Upload.." /> <menu-item text="Refresh" /> <menu-item style="SWT.CASCADE" text="Extensions"> <menu> <menu-item text="Sample"></menu-item> </menu> </menu-item> </menu> <table-column text="File Name" style="SWT.LEFT" width="150" /> <table-column text="File Size" style="SWT.RIGHT" width="100" /> <table-column text="Type" style="SWT.LEFT" width="100" /> <table-column text="Date Modified" style="SWT.LEFT" width="100" /> </table> <label style="SWT.BORDER" text="c:\" id="localStatusBar"> <grid-data h-align="SWT.FILL" h-grab="true" /> </label> </composite> <!-- remote composite --> <composite style="SWT.BORDER" id="remoteComp"> <grid-layout /> <tool-bar style="SWT.BORDER"> <grid-data h-align="SWT.FILL" h-grab="true" /> <tool-item text="Back" toolTipText="Back one Directory" /> <tool-item text="Download" toolTipText="Download.." /> <tool-item text="Make Folder" toolTipText="Make Folder" /> <tool-item text="Delete" toolTipText="Delete" /> <tool-item text="Refresh" toolTipText="Refresh" /> <tool-item text="Properties" toolTipText="Properties.." /> </tool-bar> <text style="SWT.BORDER" id="remoteAddressBar"> <grid-data h-align="SWT.FILL" h-grab="true" /> </text> <table style="SWT.BORDER | SWT.V_SCROLL" headerVisible="true" id="remoteTable"> <grid-data h-align="SWT.FILL" v-align="SWT.FILL" h-grab="true" v-grab="true" /> <menu style="SWT.DROP_DOWN"> <menu-item text="Download.." /> <menu-item text="Properties.." /> <menu-item text="Delete" /> <menu-item text="Refresh" /> <menu-item style="SWT.CASCADE" text="Extensions"> <menu> <menu-item text="Sample"></menu-item> </menu> </menu-item> </menu> <table-column text="File Name" style="SWT.LEFT" width="150" /> <table-column text="File Size" style="SWT.RIGHT" width="100" /> <table-column text="Date Modified" style="SWT.LEFT" width="100" /> </table> <label style="SWT.BORDER" text="S3:\" id="remoteStatusBar"> <grid-data h-align="SWT.FILL" h-grab="true" /> </label> </composite> </sash-form> </composite> <composite style="SWT.BORDER"> <ctab-folder simple="false" id="transferTabFolder"> <composite id="transferComp"> <table style="SWT.BORDER | SWT.V_SCROLL" linesVisible="true" headerVisible="true" id="transferTable"> <table-column text="File Name" style="SWT.LEFT" width="150" /> <table-column text="From" style="SWT.RIGHT" width="100" /> <table-column text="To" style="SWT.LEFT" width="100" /> <table-column text="File Size" style="SWT.RIGHT" width="100" /> <table-column text="Operation" style="SWT.LEFT" width="100" /> <table-column text="Progress" style="SWT.LEFT" width="100" /> <table-column text="Status" style="SWT.LEFT" width="100" /> <table-column text="Speed" style="SWT.LEFT" width="100" /> </table> </composite> <ctab-item text="Transfer Queue" _control="transferComp" _font-id="helv10"> </ctab-item> </ctab-folder> </composite> </sash-form> <label style="SWT.BORDER" text="StatusBar" id="statusBar"> <grid-data h-align="SWT.FILL" h-grab="true" /> </label> </shell>
Generated UI :
Applications |
Links |
SWTML Links |
Share this Page |