Results 1 to 1 of 1
Thread: Creating a caret in SWT
-
Creating a caret in SWT
Java Code:import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Caret; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; public class Snippet74 { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); Caret caret = new Caret(shell, SWT.NONE); caret.setBounds(10, 10, 2, 32); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }"The sole cause of man’s unhappiness is that he does not know how to stay quietly in his room." - Blaise Pascal
Similar Threads
-
Creating a caret (using an image) in SWT
By Java Tip in forum SWTReplies: 0Last Post: 07-02-2008, 07:51 PM -
How to use TextLayout with Caret
By Java Tip in forum java.awtReplies: 0Last Post: 06-25-2008, 10:36 AM -
Creating .Jar files
By Deathmonger in forum New To JavaReplies: 6Last Post: 06-22-2008, 11:59 PM -
Creating ZIP files
By Java Tip in forum Java TipReplies: 0Last Post: 03-03-2008, 05:14 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks