Re: using JOptionPane's error icon



Aki "Sus" Laukkanen wrote:
hkongogo@xxxxxxxxx wrote:

I'm writing my own error msg dialog and want to use the JOptionPane's
error icon. Pls help


You mean like this:
JOptionPane.showMessageDialog(<parent frame>,"<error message text>","<error message title>",JOptionPane.ERROR_MESSAGE);


For such basic information about Swing components, you should bookmark at least Sun's Swing tutorial pages, for example <http://java.sun.com/docs/books/tutorial/uiswing/components/components.html>.



Think the question is misunderstood... He wants to use the ICON used in JOptionPane in other contexts, and NOT the JOptionPane itself... I have been looking for a way to do it too.. So far with no success.


/Mikael
.