Re: using JOptionPane's error icon



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>.

--
-Aki "Sus" Laukkanen
"Älä multa kysy tai mä vastaan!"
"Don't ask me or I'll answer!"
.