+ 1
How to create a alert box in JAVA ?
Please give Code to create alert box in JAVA
1 Answer
+ 1
First show your attempt we are not here to provide codes but we can help you in your problems
by the way you may try this :
import javax.swing.*; Â
public class OptionPaneExample { Â
JFrame f; Â
OptionPaneExample(){Â Â
    f=new JFrame(); Â
    JOptionPane.showMessageDialog(f,"Hello, Welcome to Javatpoint."); Â
}Â Â
public static void main(String[] args) { Â
    new OptionPaneExample(); Â
}Â Â
}Â Â