private void layoutScreen() {
   addLogo();
   add(new SeparatorField());
   usernameField.setPadding(PADDING);
   usernameField.setText(store.getLastUsedLoginUsername());
   add(usernameField);
   passwordField.setPadding(PADDING);
   add(passwordField);
   add(new SeparatorField());
   addButtons();
   createProgressMsg();
 }
 private void addHostField(SettingsStore store) {
   if (hostField.getManager() != null) {
     return;
   }
   hostField.setPadding(PADDING);
   hostField.setText(store.getLastUsedLoginHost());
   int hostPosition = getHostPosition();
   if (hostPosition == -1) {
     add(hostField);
   } else {
     insert(hostField, hostPosition);
   }
 }
Esempio n. 3
0
 public void resetSearchField() {
   searchField.setText("");
 }