]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - security/eclipse/plugins/org.argeo.security.ui/src/main/java/org/argeo/security/ui/dialogs/DefaultLoginDialog.java
Improve Security
[lgpl/argeo-commons.git] / security / eclipse / plugins / org.argeo.security.ui / src / main / java / org / argeo / security / ui / dialogs / DefaultLoginDialog.java
index b0a7e05073d93bdbf6006af717b4a9c360681e01..d00e961fb3acd4a221c3071e13f26cbd3ad40638 100644 (file)
@@ -30,15 +30,18 @@ public class DefaultLoginDialog extends AbstractLoginDialog {
        }
 
        protected Point getInitialSize() {
-               return new Point(300, 280);
+               return new Point(300, 250);
        }
 
        protected Control createDialogArea(Composite parent) {
                Composite dialogarea = (Composite) super.createDialogArea(parent);
-               dialogarea.setLayoutData(new GridData(GridData.FILL_BOTH));
+               // dialogarea.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true,
+               // true));
                Composite composite = new Composite(dialogarea, SWT.NONE);
                composite.setLayout(new GridLayout(2, false));
+               composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
                createCallbackHandlers(composite);
+               parent.pack();
                return composite;
        }
 
@@ -63,7 +66,8 @@ public class DefaultLoginDialog extends AbstractLoginDialog {
                label.setText(callback.getPrompt());
                final Text passwordText = new Text(composite, SWT.SINGLE | SWT.LEAD
                                | SWT.PASSWORD | SWT.BORDER);
-               //passwordText.setLayoutData(new GridData(GridData.FILL_BOTH));
+               passwordText
+                               .setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
                passwordText.addModifyListener(new ModifyListener() {
 
                        public void modifyText(ModifyEvent event) {
@@ -78,7 +82,7 @@ public class DefaultLoginDialog extends AbstractLoginDialog {
                label.setText(callback.getPrompt());
                final Text text = new Text(composite, SWT.SINGLE | SWT.LEAD
                                | SWT.BORDER);
-               //text.setLayoutData(new GridData(GridData.FILL_BOTH));
+               text.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
                text.addModifyListener(new ModifyListener() {
 
                        public void modifyText(ModifyEvent event) {