Results 1 to 2 of 2
  1. #1
    berndog is offline Member
    Join Date
    Aug 2010
    Rep Power

    Default GUI text display input to list array

    I have several input fields in a GUI. I am doing a calculation with some of the fields. Then I want to input all the fields, including the results, into an Array List. Does anyone have example code for inputting data from a GUI into an Array List?

    Please and thank you,

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    what type of objects are the input fields? Text components?
    If the objects are the same type, you could have an array of them and loop thru it calling a get method on each one and doing an add to the array list

Similar Threads

  1. Replies: 1
    Last Post: 05-31-2010, 08:46 AM
  2. Replies: 8
    Last Post: 12-29-2008, 07:12 AM
  3. To display as a list
    By yuvi461 in forum New To Java
    Replies: 2
    Last Post: 01-09-2008, 12:06 PM
  4. Adding List to MIDlet Display
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-23-2007, 02:07 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