Re: using JOptionPane's error icon
- From: Mikael Flensborg <mflensborg@xxxxxxxxxxxxxxx>
- Date: Wed, 27 Apr 2005 10:15:03 +0200
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 .
- Follow-Ups:
- Re: using JOptionPane's error icon
- From: Thomas Weidenfeller
- Re: using JOptionPane's error icon
- References:
- using JOptionPane's error icon
- From: hkongogo@xxxxxxxxx
- Re: using JOptionPane's error icon
- From: Aki \"Sus\" Laukkanen
- using JOptionPane's error icon
- Prev by Date: Re: using JOptionPane's error icon
- Next by Date: Re: using JOptionPane's error icon
- Previous by thread: Re: using JOptionPane's error icon
- Next by thread: Re: using JOptionPane's error icon
- Index(es):