Link to home
Start Free TrialLog in
Avatar of jkteater
jkteaterFlag for United States of America

asked on

Array and Text Fields

If I am taking in a array

String[] emails = proj.getEmailAddresses();

how can I show the values of the array in my textfield?  Is this possible?

Here is the method I am calling
//////////////////////////////////////////////////////////////////////////
   //                                                                      //
   //                     updateCurrentEmails()                            //
   //                                                                      //
   //////////////////////////////////////////////////////////////////////////
   private void updateCurrentEmails() {
      if (currentProject != null) {
            curEmails.setText(); <==  value of array here?
      } // end if
      else {
         curEmails.setText("NO EMAILS SELECTED");
      }
   } // end updateCurrentProjectLabel()  
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Since there are several, it would probably be better to use a JList
:)