Would anyone happen to know also if there is some predefined swing box for prompting the user to decided whether or not to overwrite an exhisting file? you know the basic "This file already exists, would you like to overwrite it?"

Recommended Answers

Have you tried the JFileChooser in output/save mode? It might do that.
Or the JOptionPane class could be used.

Jump to Post

All 2 Replies

Have you tried the JFileChooser in output/save mode? It might do that.
Or the JOptionPane class could be used.

Yeah i as able to use JOptionPane.

thanks

Be a part of the DaniWeb community

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