fix: remove ActiveUser class debug instances to prevent errors
This commit is contained in:
parent
fb3460f4b8
commit
d55c08c353
1 changed files with 7 additions and 13 deletions
|
@ -53,24 +53,18 @@ public class UserListController implements Initializable {
|
|||
|
||||
@Override
|
||||
public void initialize(URL url, ResourceBundle rb) {
|
||||
ObservableList<PeerUser> activeList = null;
|
||||
try {
|
||||
activeList = FXCollections.observableArrayList(
|
||||
ObservableList<PeerUser> activeList = FXCollections.observableArrayList(
|
||||
new PeerUser("Dodo0"),
|
||||
new PeerUser("Dodo3"),
|
||||
new PeerUser("Dodo2"),
|
||||
new ActiveUser("Coucou0", InetAddress.getLocalHost()),
|
||||
new ActiveUser("Coucou1", InetAddress.getLocalHost()),
|
||||
new ActiveUser("Coucou3", InetAddress.getLocalHost()),
|
||||
new PeerUser("Coucou0"),
|
||||
new PeerUser("Coucou1"),
|
||||
new PeerUser("Coucou3"),
|
||||
new PeerUser("Dodo1"),
|
||||
new ActiveUser("Coucou2", InetAddress.getLocalHost())
|
||||
new PeerUser("Coucou2")
|
||||
);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (activeList != null) {
|
||||
activeList.sort(null);
|
||||
}
|
||||
|
||||
activeList.sort(null);
|
||||
userList.setItems(activeList);
|
||||
userList.setCellFactory(listView -> {
|
||||
final UserListItemCell cell = new UserListItemCell();
|
||||
|
|
Loading…
Reference in a new issue