Sure.
Oh, you also want to know
how?
The
message parameter does not have to be a
String. It can be many things, including Components, Icons, Strings and array of any of the above. That means you can do it the following way:
As I said, the message can be Components. That means that you can even build a complex UI hierarchy and display that
(as long as the message is not a window (JFrame, JDialog, etc)).