Auf Thema antworten

Das hab ich tatsächlich gerade versicht und zwar folgendermaßen^^:

[CODE=java]@Override

            public void handle(MouseEvent event) {

                    Participant teilnehmer = new Participant(nameField.getText());

                        participantList.add(teilnehmer);

                        Collections.sort(participantList);

                      

                      

                    for(int i = 0; i < participantList.size(); i++) {

                        Text label1 = new Text();

                        root2.getChildren().add(label1);

                        label1.setText(participantList.get(i).name);

                        participantList.clear(); // <----------

                      

                    }

    [/CODE]

Hat leider auch nicht geholfen.


[USER=67540]@Jw456[/USER] sorry das hab ich wohl vergessen zu erwähnen :/



Oben