fix visuels sur le panneau latéral

This commit is contained in:
Louis Farina 2021-01-07 18:56:09 +01:00
parent d3c1e1ac53
commit f45cfe2d1a

View file

@ -94,7 +94,7 @@ class ReceiveThread extends Thread {
knownUsersPanel.append("Online:\n"); knownUsersPanel.append("Online:\n");
for(User a:known_users) for(User a:known_users)
{ {
knownUsersPanel.append(a.getName() + "\n"); knownUsersPanel.append(" " + a.getName() + " \n");
} }
} }
displayArea.setCaretPosition(displayArea.getDocument().getLength()); displayArea.setCaretPosition(displayArea.getDocument().getLength());
@ -187,7 +187,7 @@ class ConnectionListenerThread extends Thread {
knownUsersPanel.append("Online:\n"); knownUsersPanel.append("Online:\n");
for(User a:known_users) for(User a:known_users)
{ {
knownUsersPanel.append(a.getName() + "\n"); knownUsersPanel.append(" " + a.getName() + " \n");
} }
} }
else else
@ -289,6 +289,7 @@ public class NetworkClient {
known_users.add(userList.get(i)); known_users.add(userList.get(i));
} }
known_users.add(new User(username, "25.67.234.235")); known_users.add(new User(username, "25.67.234.235"));
Collections.sort(known_users);
connected = true; connected = true;
} }
} }