I wrote a little java tool with a GUI, that needs a source path (e.g. Music folder) and a destination path (e.g. USB device) entered by the user.
If the user selects a drive that is not available (e.g. select USB device and unplug it afterwards from the PC) I need to output a error message, like "device E:\ not available".
I would like to know, what is a good or professional way to create and show messages in a JFrame GUI? Show messages in a jTextArea? Via Popup?
Right now, I use this solution from Joffrey, but it show the whole error output from the console - what a usual user not understands. How to set output stream to TextArea