Sorry, but this is a very general, and in fact overly-broad question without context. What library are you talking about? Swing? AWT? SWT? Other? What have you tried? What errors have you seen?

Please give us a little to go on. Otherwise I will assume that it's Swing and recommend that you put an ImageIcon in a JLabel, the JLabel in a JOptionPane and display the JOptionPane. The Swing tutorials and API can help provide you with the details and the rest is up to you. Good luck, and hoping you find success (and ask better questions :(think):)

06-19-2011, 08:21 PM

blackstardlb

I'm using netbeans GUI so i think its Swing

06-19-2011, 08:27 PM

Fubarable

Quote:

Originally Posted by blackstardlb

I'm using netbeans GUI so i think its Swing

My suggestion is to not use NetBeans to generate your GUI code, because all that happens is you create GUI code without any understanding about what it does. Instead use NetBeans as your IDE but create your own Swing code from scratch so you gain an understanding about what it does. You can learn more about Swing here: Using Swing Comonents