I made Desktop App in netbeans platform in Java Swing. Now, how can i put myapp's helpOfApp.pdf file in netbeans platform app(MyApp)'s menu bar?
how to add this .html file to menubar in my app?
Action
(or ActionListener
) to the menu item.URL urlToResource = this.getClass().getResource("/path/to/the.resource");
JEditorPane
(non-editable, and possibly with a link listener) pointing to urlToResource
.See the relevant 'keyword+java+tutorial' for more details on each step.
Tip: ensure all resources (e.g. linked HTML, CSS, images etc.) are: