How to create a alert box in JAVA ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to create a alert box in JAVA ?

Please give Code to create alert box in JAVA

13th Apr 2020, 3:35 AM
Tanishq Kamble
Tanishq Kamble - avatar
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();   }   }  
13th Apr 2020, 4:08 AM
Ayush Kumar
Ayush Kumar - avatar