Results 1 to 1 of 1
Thread: SWT code template
-
SWT code template
Following is SWT code template that can be used for the SWT application development
Java Code:import org.eclipse.swt.layout.RowLayout; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; public class SliderExample { public static void main(String args[]) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout( new RowLayout()); // ------------------------ // Your code comes to here. // ------------------------ shell.pack(); shell.open(); while( !shell.isDisposed()) { if(!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
Similar Threads
-
How to use JDBC Template classes to control basic JDBC processing and error handling
By Java Tip in forum Java TipReplies: 0Last Post: 04-01-2008, 10:17 AM -
Template for System.out.println
By eva in forum EclipseReplies: 3Last Post: 01-05-2008, 12:46 PM -
Comments Template Assignment - very basic, need help!
By passage in forum New To JavaReplies: 2Last Post: 12-10-2007, 05:17 AM -
Help with TLD template
By Albert in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 07-13-2007, 03:09 PM -
Generating Code Automatically Using Custom code Template In Eclipse
By JavaForums in forum EclipseReplies: 1Last Post: 04-26-2007, 03:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks