Results 1 to 3 of 3
Thread: Help with vector and textarea
- 10-14-2009, 07:38 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 4
- Rep Power
- 0
Help with vector and textarea
I have a code in which i have a textarea, like a notepad it has a menu bar which has save, open, close, select, copy, and paste, ok so i put a sentence, like:
Hello, how are you?
i need to make a vector that captures every letter, like:
V[H], V[e], V[l]...
how do i do this? i am trying to make a cryptography program, in which every letter type gets replaced by a number, but in the part of separating the textarea into letters i get stuck...i would really apreciate if you could help me thankssss...
JTextArea Text = new JTextArea();
- 10-14-2009, 08:35 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Just split the String into an array of characters using the string.toCharArray method.
- 10-14-2009, 09:10 PM #3
Member
- Join Date
- Oct 2009
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
Spell check in Textarea.
By surya_dks in forum Advanced JavaReplies: 2Last Post: 08-22-2008, 12:33 AM -
Output to TextArea
By ljk8950 in forum AWT / SwingReplies: 4Last Post: 08-03-2008, 09:59 AM -
TextArea with Unicode
By Java Tip in forum javax.swingReplies: 0Last Post: 04-16-2008, 10:53 PM -
TextArea Bug?
By Soda in forum New To JavaReplies: 2Last Post: 12-07-2007, 12:37 PM -
textarea
By ubuntu in forum AWT / SwingReplies: 4Last Post: 05-12-2007, 09:54 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks