private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
String A = (String) jComboBox1.getSelectedItem();
String B = (String) jComboBox2.getSelectedItem();
Treck route = new Treck(A, B);
_TreckWelt.add(route);
jLabel10.setText(route.getStartOrt());
jLabel11.setText(route.getZielOrt());
int distanz = route.getDistanz();
jLabel13.setText(String.valueOf(distanz));
//int aktuelleRunde = Integer.parseInt(jLabel16.getText());
jLabel12.setText(String.valueOf(route.velocity()));
int rest = route.restStrekeBerechnen();
route.setVerblieben(distanz);
jLabel14.setText(String.valueOf(rest));
TV.clear();
for (int i = 0; i < _TreckWelt.size(); i++) {
TV.add("von " + _TreckWelt.get(i).getStartOrt() + " nach " + _TreckWelt.get(i).getZielOrt());
}
jList3.setListData(TV);
maps1.trecklist.add(new Rectangle2D.Float(route.getKoordinate(route.getStartOrt(), "x") - 10, route.getKoordinate(route.getStartOrt(), "y") - 10, 20, 20));
jDialog2.setVisible(false);
}//GEN-LAST:event_jButton8ActionPerformed