fix visuels sur le panneau latéral
This commit is contained in:
parent
d3c1e1ac53
commit
f45cfe2d1a
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue