Results 1 to 3 of 3
  1. #1
    Antonioj1015 is offline Member
    Join Date
    Oct 2009
    Posts
    4
    Rep Power
    0

    Question 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();

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Just split the String into an array of characters using the string.toCharArray method.

  3. #3
    Antonioj1015 is offline Member
    Join Date
    Oct 2009
    Posts
    4
    Rep Power
    0

    Default

    Quote Originally Posted by r035198x View Post
    Just split the String into an array of characters using the string.toCharArray method.
    yea i know but then how could i replace each letter with a number...

Similar Threads

  1. Spell check in Textarea.
    By surya_dks in forum Advanced Java
    Replies: 2
    Last Post: 08-22-2008, 12:33 AM
  2. Output to TextArea
    By ljk8950 in forum AWT / Swing
    Replies: 4
    Last Post: 08-03-2008, 09:59 AM
  3. TextArea with Unicode
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 04-16-2008, 10:53 PM
  4. TextArea Bug?
    By Soda in forum New To Java
    Replies: 2
    Last Post: 12-07-2007, 12:37 PM
  5. textarea
    By ubuntu in forum AWT / Swing
    Replies: 4
    Last Post: 05-12-2007, 09:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •