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:
@ -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);
|
||||
|
Reference in New Issue
Block a user