I'm developing a small swing application, and I'm not sure if I should use the printStackTrace().
If I get an exception I show a user via JOptionPane a message, e.g: file not found etc.
But at the same time, I'm using the printStackTrace(), I wasn't sure about neither showing the stack trace to a user nor not to print anything...just in case it would be needed.
Can I leave the printStackTrace there or why not to?
thank you for advice.