I have a window built with scene builder with a menuBar.
In the menuBar there are a couple of Menuitems that only open other windows. 

So I want to write only one function that can be used by each one of those menuItems, and open the appropriate window.

I tried to give an id for each menuItem, and with this function 

```
public void openWindow(ActionEvent event){ 
    System.out.println( event);
}

```

I can see that id (example : customer menuItem) ,

```
javafx.event.ActionEvent[source=MenuItem[id=customers, styleClass=[menu-item]]]

```

But I dont know how to get it to use it to open the customer window.