In PHP, event tracking occurs using the EventDispatcher class, which class to use for this in Java, only the awt and swing libraries come across. Or you can redefine these classes to handle events from graphic libraries and not bathe?

  • Give examples of events that you would like to track down - Chubatiy
  • for example, we added a new product to the database table, I just don’t really understand which way to dig. - fahtom94
  • If you need to track the addition from the side of the DB - you are in the direction of the триггеры бд . If just for the fact of the addition, add some class to the save method based on the observer pattern, for example. Which will somewhere send the data / modifications. And there you can run for example some TaskExecutor , which will redirect this data after a time (for example, to mail, to log, etc.) - Chubatiy
  • thanks, I will dig. - fahtom94

0