Hi, I am having trouble finding the right way to open a file through GUI and actionListener without going through JFileChooser. For example, I have a simple GUI that has a help menu, and I want it so that when I click on the Help menu item, it will open a certain file, such as HTML or txt. How can I go about implementing this in my program which implements actionListener ()?
I have attached my MenuListener, change the extension to .java to view it
Question
jellyboy11
Hi, I am having trouble finding the right way to open a file through GUI and actionListener without going through JFileChooser. For example, I have a simple GUI that has a help menu, and I want it so that when I click on the Help menu item, it will open a certain file, such as HTML or txt. How can I go about implementing this in my program which implements actionListener ()?
I have attached my MenuListener, change the extension to .java to view it
thanks in advance :blush: :blush:
MenuListener.txt
Link to comment
Share on other sites
2 answers to this question
Recommended Posts