how to display message box in java netbeans || java tutorials for beginners || by Saurabh Talathi |
In this video i have explained that how to use JOptionPane to display message.
In that example my first argument to the JOptionPane showMessageDialog method is a frame object, which presumably is an instance of a JFrame. If for some reason you don't have a reference to JFrame or JWindow instance, you can make that field null, and still display the identical JOptionPane dialog, as shown in this example:
JOptionPane.showMessageDialog(null, "A basic JOptionPane message dialog");
you can watch our videos:
how to go from one frame to another frame in netbeans
https://youtu.be/kIA_jZDmUfU
In this tutorial I will show you how to display tex in a message dialog box.
Eclipse IDE for Java EE Developers: http://goo.gl/Ppyt8R
subscribe our channel if you want to watch more videos ;
like and share