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