How to validate SWT form?

Posted by Rahul on Stack Overflow See other posts from Stack Overflow or by Rahul
Published on 2010-04-27T13:05:07Z Indexed on 2010/04/27 14:13 UTC
Read the original article Hit count: 312

Filed under:
|
Label label1 = new Label(container, SWT.NULL);
    label1.setText("Enter the Password ");
    text1 = new Text(container, SWT.BORDER | SWT.PASSWORD);
    text1.setText("");
    text1.addKeyListener(new KeyListener() {


        public void keyPressed(KeyEvent e) {
        }

        public void keyReleased(KeyEvent e) {
            if (!text5.getText().isEmpty()) {
                setPageComplete(false);

            }
        }

    });

hi, i am creating form using SWT in eclipse can anyone tell me how to validate that form entry above is the sample code of that..actually i want to validate password field it should be minimum length of 6.How to do this please reply.

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about java