Hi everyone,

I am reading text from a text file and outputing it in a textArea on Netbeans. I am using file not found exception, however I want to have an error message that pops up. Any ideas?

Thanks

Recommended Answers

The JOPtionPane class has methods that will display a message in a window

Jump to Post

All 2 Replies

The JOPtionPane class has methods that will display a message in a window

JOptionPane.showMessageDialog(null, "error");