Small improvements

* Resettings the searchField after adding a contact and clearing the
contactsModel after adding a contact.

* Revised LoginDialoge UI
This commit is contained in:
DieGurke
2020-02-10 23:21:06 +01:00
parent c90bbbc262
commit 73ba6b0456
2 changed files with 76 additions and 13 deletions

View File

@ -413,6 +413,10 @@ public class ChatWindow extends JFrame {
e.printStackTrace();
}
// Clearing the search field and the searchResultList
searchField.setText("");
contactsModel.clear();
// Update LocalDB
userListModel.addElement(contact);
localDb.getUsers().put(contact.getName(), contact);