import javax.swing.*;
/**
* JOptionPane showInputDialog example #1.
* A simple showInputDialog example.
* @author alvin alexander, http://alvinalexander.com
*/
public class JOptionPaneShowInputDialogExample1
{
public static void main(String[] args)
{
// a jframe here isn't strictly necessary, but it makes the example a little more real
JFrame frame = new JFrame("InputDialog Example #1");
// prompt the user to enter their name
String name = JOptionPane.showInputDialog(frame, "What's your name?");
JOptionPane.showMessageDialog(frame,"my name is "+name);
// get the user's input. note that if they press Cancel, 'name' will be null
System.out.printf("The user's name is '%s'.\n", name);
System.exit(0);
}
}
//original source: http://alvinalexander.com/java/joptionpane-showinputdialog-examples
I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly..
ReplyDeleteJava Training in Chennai | Java Training Institute in Chennai
This is a wonderful blog. Keep up the good work. java training in chennai
ReplyDeletethe information is so informative.. thank you for sharing...java training in chennai/java training center in chennai
ReplyDelete
ReplyDeleteWell Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas. block chain training in chennai|Selenium training in chennai
Learned a lot of new things from this article......
ReplyDeleteBest Hotel & Restaurant management services in chennai | Best Restaurant Management service in chennai
Learned a lot of new things from this article.....
ReplyDeletesamsung tv panel replacement cost |
Tv repair and service in chennai
Awesome post..Thanks for sharing....
ReplyDeleteBest bouncers and bodyguards in chennai |
Best bouncers in chennai
Thank you for your Post. Nice Blog...
ReplyDeleteBest matrimonial sites in chennai |
Chennai matrimonial sites in chennai |
Hindu marriage site in chennai
Thank you for your Post. Nice Blog.
ReplyDeleteRack engineering service in Chennai |
Best Steel Racks in Chennai |
Slotted angle racks in Chennai
Very good act of posting.Thanks lot...
ReplyDeleteElectronic Security Systems Chennai |
CCTV Technician in chennai |
Installation training in chennai
I have read your blog. Its very attractive and impressive. I like it your blog....
ReplyDeletebusiness cards printing press in chennai |
school diaries printing services in chennai
Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
ReplyDeleteJava Training in Chennai | J2EE Training in Chennai | Advanced Java Training in Chennai | Core Java Training in Chennai | Java Training institute in Chennai
This is wonderful blog....
ReplyDeleteC training
Data power training
Data Stage training
Dynamic CRM Training