We use a GUI testing tool which requires that the GUI component names are set to constant values.
When a message dialog is called with this code below, the name is set to dialog12, dialog13 and so on. But I need to set the name of the JDialog which appears when calling this method:
JOptionPane.showMessageDialog(parent, messageArea, title, messageType);
There is no return value. So how to set the name?
Is there another easy convenience method for showing a message dialog, but beeing able to set the name for it?