Click here to Skip to main content
16,016,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please tell this and ans me asap .
Posted
Updated 5-Mar-14 17:49pm
v2
Comments
What have you tried and where is the problem?

1 solution

You can fetch the text from textbox and store it in a variable
sample code :
Java
String str;
str = textboxName.getText();

Then you can add it to dialog box

sample code :
Java
JOptionPane.showMessageDialog(null, str);

Hope this help...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900