jkteater
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( )
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Since there are several, it would probably be better to use a JList
:)