Results 1 to 7 of 7
Thread: Text Area help
- 10-11-2012, 03:27 AM #1
Member
- Join Date
- Oct 2012
- Posts
- 31
- Rep Power
- 0
- 10-11-2012, 03:54 AM #2
Member
- Join Date
- Oct 2012
- Posts
- 31
- Rep Power
- 0
Re: Text Area help
its AWT and i wanted to know how to change what line it appears on
-
Re: Text Area help
Sorry, I'm going to bow out on this as I am mainly familiar with Swing, not AWT. I suggest that if you don't have pressing reasons for using AWT you switch as well. Best of luck with solving this regardless!
- 10-11-2012, 04:13 AM #4
Member
- Join Date
- Oct 2012
- Posts
- 31
- Rep Power
- 0
Re: Text Area help
i use AWT becuase it is what i am most comftorable with and how would you do it in swing because alot of times its the same
-
Re: Text Area help
I'm still a little unclear as to your goal. Do you have a TextArea that has several lines of text in it, and now you want to change the ordering? Or is it something else entirely? Perhaps if you describe or even show your GUI and tell us what behavior you're trying to get the user to experience, we'll be better able to understand what you're striving for.
- 10-11-2012, 04:21 AM #6
Member
- Join Date
- Oct 2012
- Posts
- 31
- Rep Power
- 0
Re: Text Area help
What i want to happen is when i click a button a line of text appears
and if the first line is filled with text then i want it to appear to the second line
and if the second line is filled appear to the third line
and so on and so on line
-
Re: Text Area help
OK, perhaps I have a better idea of what you're trying to do. Perhaps your algorithm could look something like this:
in pseudocode
Java Code:create a String variable called text, and fill it with the text currently held by the text area. Create a String that holds your new text, a new line, "\n", and the text String above. Replace the text in the text area with the new String created above.
Similar Threads
-
adding text to a text area dynamically
By tom2zip in forum AWT / SwingReplies: 3Last Post: 01-17-2012, 05:58 AM -
Reading from a text file, then writing back to Text Area in Reverse
By medic642 in forum New To JavaReplies: 8Last Post: 07-17-2011, 02:38 PM -
Text Area
By pabloma2002 in forum CLDC and MIDPReplies: 1Last Post: 02-11-2011, 04:56 PM -
Applet program to open a text file and display the content in text area
By bitse in forum Java AppletsReplies: 0Last Post: 12-09-2010, 05:56 PM -
How display text in listbox or text area right to left or center??
By sameer22 in forum CLDC and MIDPReplies: 0Last Post: 09-28-2010, 09:52 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks