Ignore:
Timestamp:
2005-10-04T16:46:41+13:00 (19 years ago)
Author:
kjdon
Message:

small changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/anttasks/MyGetUserAndPassword.java

    r10307 r10683  
    9999    content_pane.setLayout(new BorderLayout(5,5));
    100100    content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    101     dialog.setLocation(200, 200);
     101    dialog.setLocation(200, 300);
    102102    dialog.setSize(SIZE);
    103103    dialog.addWindowListener(new WindowAdapter() {
     
    122122    instruction_textarea.setRows(2);
    123123    instruction_textarea.setWrapStyleWord(true);
    124     String full_message = "Please enter your username and password";
    125     if (message != null) {
    126         full_message = message + "\n" + full_message;
    127     }
    128     instruction_textarea.setText(full_message);
     124    if (message == null) {
     125        message = "Please enter your username and password";
     126    }
     127    instruction_textarea.setText(message);
    129128       
    130129    JLabel name_label = new JLabel("User name:");
     
    135134    if (user_property == null ) {
    136135        name_field.setEditable(false);
    137     }
     136    } 
    138137    JLabel pass_label = new JLabel("Password:");
    139138    pass_field = new JPasswordField(16);
    140    
    141139   
    142140    FieldListener field_listener = new FieldListener();
Note: See TracChangeset for help on using the changeset viewer.