It’s hard for me to find a tutorial that allows JMenuItem to flag ("Help Content") to open an html page that displays help content. The html page will be stored on the local machine, for example C: \ help. I created the following action listener, which, when clicked on, displays a string. This is for test purposes only to show that my ActionListener is working.
private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {
JOptionPane.showMessageDialog(null, "Help File Popup");
}
So, how would I replace:
JOptionPane.showMessageDialog(null, "Help File Popup");
Thus, when jMenuItem3 is clicked, the html page is loaded in the browser by default. Thank you very much in advance!
source
share