title: Javafx doesn't detect changes of available printers
body: <p>I'm developing a JavaFX application, which involves printers. But I need to make an update button so that the application can detect recently created or deleted printers (disconnected or connected) while the application is running.</p>
  
  <h1>PS :</h1>
  
  <p><code>Printer.getAllPrinters()</code> gets what I want but it needs the application to be restarted before detecting changes, which means that my update button is useless.</p>
  
  <p>edit 1:</p>
  
  <pre><code>public void updateAvailablePrinters() {
      printers = FXCollections.observableArrayList();
      ObservableSet&lt;Printer&gt; allPrinters = Printer.getAllPrinters();
      allPrinters.forEach(printer -&gt; printers.add(printer)); // printers is a field variable
  }
  </code></pre>