I implemented a Save As dialog in Java that prompts the user if the file already exists, and I want the No option to be selected by default. How do I do this?
Here i
For the above example, it is JOptionPane.showOptionDialog Those arguments can no be passed to showConfirmDialog because it does not have them.
JOptionPane.showOptionDialog
showConfirmDialog
More people might be looking for this so why not offer a "working" solution.