Results 1 to 2 of 2
  1. #1
    Antonioj1015 is offline Member
    Join Date
    Oct 2009
    Rep Power

    Question How to convert a TextArea to a String?

    I need to convert a TextArea to a String, and the rplace the letter "a" in the string by a "f";
    I have:
    JTextArea Text1 = new JTextArea();
    String Text2;
    ???????? here's where i convert the textarea to a srting ??????????
    Text2 = null;
    Text2 = Text1.replaceAll("a", "e");
    Thank you for your help

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Rep Power


    Read the API and look at all the "get" methods to find what you are looking for. And don't forget to look at the methods of the parent class.

Similar Threads

  1. How to convert a string into a BigInteger
    By valery in forum New To Java
    Replies: 4
    Last Post: 09-13-2011, 02:32 PM
  2. how to convert String number to int
    By gabriel in forum New To Java
    Replies: 5
    Last Post: 08-02-2009, 04:46 PM
  3. trying to convert an interger to a string
    By matpj in forum New To Java
    Replies: 12
    Last Post: 01-15-2009, 11:08 AM
  4. convert String to Double
    By azurovyhrosik in forum CLDC and MIDP
    Replies: 5
    Last Post: 10-22-2008, 03:46 AM
  5. convert a really big string (len 39) to bigdecimal
    By coolsig in forum Advanced Java
    Replies: 6
    Last Post: 06-14-2008, 03:48 AM

Posting Permissions

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