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

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

JOptionPane.showMessageDialog(null, "error");

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.