Is it possible to get the same dialog graphics for messages (!), confirmations (?), etc. for custom dialogs as you get on the predefined dialogs?
Printable View
Is it possible to get the same dialog graphics for messages (!), confirmations (?), etc. for custom dialogs as you get on the predefined dialogs?
Those icons are just gifs that are loaded by the predefined dialogs. I don't remember where they are located, but you can find them. One thing you can do is create a JLabel or ImageIcon from the gif you want to use and add it to your custom dialog.
"There's nothing more dangerous than a resourceful idiot." ---Dilbert
So there's no system defined function/variable I can 'get' them from?
Not that I am aware of. There may be, but I don't know. I've always done it the way I mentioned.
"There's nothing more dangerous than a resourceful idiot." ---Dilbert
Thanks, I'll try your method.