Beispiel #1
0
 // action for set button for a car, opens the set car window
 public void carSetButtonActionPerfomed(ActionEvent ae) {
   String name = ((JButton) ae.getSource()).getName();
   log.debug("Set button for car {}", name);
   Car car = carManager.getById(name);
   if (csf != null) {
     csf.dispose();
   }
   csf = new CarSetFrame();
   csf.initComponents();
   csf.loadCar(car);
 }