Open pdf file from menubar using Vaadin
问题 I have a menubar in my vaadin application and want to add an item to open a pdf-file is a new tab of the browser. I found some solutions to open files with a button, but I have to use an MenuItem... MenuBar.Command commandHandler = new MenuBar.Command() { @Override public void menuSelected(MenuItem selectedItem) { if (selectedItem.equals(menu_help)) { openHelp(); } } }; ... menu_help = menuBar .addItem("", WebImageList.getImage(ImageList.gc_helpIcon), commandHandler); ... private void