Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java - adding icon to the message title

Status
Not open for further replies.

Tamrak

MIS
Jan 18, 2001
213
0
0
US
Good morning,

I am very brand new to Java and try to learn this myself.

I created a message box

import javax.swing.*;
public class Test {


public static void main(String[] args) {
int score;


inputStr =JOptionPane.showInputDialog(null, "Enter number:");
score = Integer.parseInt(inputStr);

}
}

There is no problem with the message box. I would like to add a Java logo on the top left hand side of the title bar ("input".)

I am not familiar with JFrame. Can we do it more simplier? If I have a GIF or JPEG file in my directory, can I just call it with an add on code? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top