This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
Reply
Posted by Saurabh Ganguly on October 10, 2001 at 5:43 AM
Hi Its pretty simple. Get the integer in the text book as follows. int abc = Integer.parseInt(texteditor2.getText.trim()); now make a for loop. for(int i =0;i{ texteditor3.setText(texteditor3.getText()+texteditor1.getText()); } I guess this should work. Just try it and let me know. Cheers Saurabh.> Hi, > I 'm a beginner in J++. > I wonder if you can help me ??? > WFC ... > I create a Form with three editboxes: 1.Text, 2.number of copies, 3.Sum. > I also have a Run button. > I want to write a text/letter in editbox 1.. > In the editbox 2. I want to write a number. This number would copy the text in editbox 1. i.e. > If I write T in 1. and 5 in 2. I want the result in editbox 3. (TTTTT) when I press the button. > Can you please help me !!! > Best Regards > Toni, Sweden
Replies:
|