Results 1 to 2 of 2
  1. #1
    Norah is offline Member
    Join Date
    Jun 2012
    Posts
    1
    Rep Power
    0

    Lightbulb Save text in Textfield to an array

    I have a crossword generator project, and the user is going to list in their words in text fields to generate a crossword puzzle from those words. I need to write a proper code to take in the words from the textfields and save them in an array:

    -to create a generator

    -to check whether the words in the text fields are duplicated or not to give the user an error message.


    And then save them to a text field (to make it easier for the user to look at his word when he comes back to the application).


    I wrote a code, but it doesnt seem to be appropriate because everytime I try to print the array contents it prints nothing. and Also I am trying I might need help, or a new idea to do it.
    I am new to java and not very fimiliar with it.


    btw I am using netbeans IDE- Jframe.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: Save text in Textfield to an array

    I wrote a code, but it doesnt seem to be appropriate because everytime I try to print the array contents it prints nothing
    Please post an SSCCE - we can only guess what the problem may be, and code provides much more context to help answer questions

Similar Threads

  1. Replies: 5
    Last Post: 08-03-2012, 10:47 AM
  2. Fetch text from TextField for use in an ActionEvent
    By nirkbirk in forum New To Java
    Replies: 1
    Last Post: 03-01-2012, 02:20 PM
  3. Get a text from a TextField as a double number.
    By Josep_16 in forum Java Applets
    Replies: 1
    Last Post: 08-09-2011, 01:51 PM
  4. Replies: 7
    Last Post: 08-17-2010, 06:00 PM
  5. Replies: 2
    Last Post: 06-14-2010, 10:18 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
  •