FileDocCategorySizeDatePackage
TextFieldExample3.javaAPI DocExample548Sat Oct 30 20:55:00 BST 2004None

TextFieldExample3

public class TextFieldExample3 extends Object

Fields Summary
Display
d
Shell
s
Constructors Summary
TextFieldExample3()

        d = new Display();
        s = new Shell(d);
        s.setSize(250,250);
        s.setImage(new Image(d, "c:\\icons\\JavaCup.ico"));
        s.setText("A Text Field Example");
        Text text1 = new Text(s, SWT.MULTI | SWT.BORDER);
        text1.setBounds(0,0,250,250);
        s.open();
        while(!s.isDisposed()){
            if(!d.readAndDispatch())
                d.sleep();
        }
        d.dispose();
    
Methods Summary