tags:

views:

44

answers:

1

hii I want show a pop up Dialog box when i click on to button

Explanation:

Actually i m creating a program in which i send a mail to email id I want to take email address to send mail for that I want a pop up dialog which ask me to type email valid address after that i want to take that email address from that dialog box for send mail

+2  A: 

You can use JOptionPane for that

http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html#input

objects
thanks a lot...... i ve used "JOptionPane.showInputDialog("Enter valid emaiId");"but now i want to perform some action on that "email id"
Hussain
Thanks Its solved
Hussain
showInputDialog returns the value entered by the user so you can useString emailId = JOptionPane.showInputDialog(...
objects
@program-java, If an answer solves your problem, you should be marking it as accepted.
Zaki