Function to gather values of a Jlist
Posted on 2011-03-21
I have a class file named Projects that has a jbutton called emails. When the user clicks the button it pops up a Email dialog window. The Email dialog is also a separate class file. In the Email dialog there is a populated list of emails and the user has the option to add or remove emails from the list. I am using a JList to store the emails.
What I am needing is a function that when the user clicks the OK button on the Email Dialog. It will get all the values of the Jlist and push it to the Projects class file. I am not sure how to do that?