title: Unable to reach Breakpoint in javafx.scene.control.MenuItem (JavaFX, Netbeans 8)
body: <p>I'm trying to add a MenuBar to my JavaFX Project. Everything went well, until
  I added a second MenuItem to a Menu.</p>
  
  <pre><code>...
      final Menu options = new Menu("Options");  // create the Menu
  
      final MenuItem settings1 = new MenuItem("Settings");  // create the first MenuItem
      settings1.setOnAction(new EventHandler&lt;ActionEvent&gt;() {
  
          @Override
          public void handle(ActionEvent event) {
              Stage sSettings = new Stage();
              GridPane vGp = new GridPane();
  
              Button ok = new Button("Ok");
              ok.setOnAction(new EventHandler&lt;ActionEvent&gt;() {
  
                  @Override
                  public void handle(ActionEvent event) {
                      ...
                      // CODE I NEED TO DEBUG
                      ...
                      sSettings.close();
                  }
  
              });
  
              sSettings.setTitle("Settings");
              sSettings.setScene(new Scene(vGp, 800, 300));
              sSettings.show();
          }
      });
      options.getItems().add(settings1);
  
      final MenuItem settings2 = new MenuItem("Settings");  // create the second MenuItem
  ...
  </code></pre>
  
  <p>Now, if I add a second MenuItem the same way i created the MenuItem <code>settings1</code>, 
  everything would work fine. The whole Code would be executed like I want it.</p>
  
  <p>My Problem is the debugging of this Code. It is not possible to debug the Code, which will be executed, when clicked on the OK-Button of the opened Stage created by the second MenuItem.
  The Code will be executed, but the Debugger won't stop inside the definition.</p>
  
  <p>My only option is to comment every single MenuItem defined before the MenuItem I want to work on. And I think it's going to be annoying very fast.</p>
  
  <p>Anyone else got the same Problem? Maybe its IDE specific:</p>
  
  <p>I'm using Netbeans 8.0.1 with jdk1.8.0_11 on Linux.
  Code Example: <a href="https://gist.github.com/mul8or/8b94e440eda49b2d8fed" rel="nofollow">https://gist.github.com/mul8or/8b94e440eda49b2d8fed</a></p>