Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2010
    Rep Power

    Question What format is a getText()?

    I would be very grateful if someone could tell me if when you do a getText() from a JTextArea is the getText() a string or a string array?

    I have used a JTextArea to enable a user to input multiple lines. I then want to send the getText() to another procedure e.g. callmethod(getText()); for analysing the text. For the callmethod that receives the getText() how should I define the format of the getText()?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    You need to read the API for this and learn to do this as a regular habit. It will answer this and many more questions you will have.

    If after reading it, you're still confused, please come on back and we'll discuss it.

    Much luck!

Similar Threads

  1. gettext problems
    By gisler in forum AWT / Swing
    Replies: 3
    Last Post: 12-01-2009, 07:35 PM
  2. how to getText() properly?
    By javamula in forum New To Java
    Replies: 12
    Last Post: 09-16-2009, 05:45 AM
  3. how to convert one format to another format
    By mahipal_reddy621 in forum New To Java
    Replies: 1
    Last Post: 12-02-2008, 10:21 AM
  4. Format
    By 2ndis1stplaceloser in forum New To Java
    Replies: 2
    Last Post: 10-21-2008, 06:38 AM
  5. [SOLVED] new2java- gettext settext
    By obdi in forum New To Java
    Replies: 4
    Last Post: 07-21-2008, 09:28 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