I am trying to use an action listener to fill an array, however I want to fill ONE array from two different sources: ComboBox Selection & JList selection. so I am trying to create an Array that will look similar to this format(each line is representing a different subscript)
ComboBoxData
JListData
JListData
JListData
ComboBoxData
JListData
JListData
JListData
JListData
ComboBoxData
I am almost certain there has got to be a way to do this, but I am not finding it! I am trying to work with an
if(e.getSource == ComboBoxData)
{
String selection = (String)ComboBoxData.getSelectedItem();
selectedComboBoxData.setText(selection);
if ( selection == String)
{
Assign to array here
}
else if( selection == int)
{
Assign to array here, with "++
}
I have so much code, right now I just tried to give the idea of what I am working with, but if there are any suggestions I would truly be greatful...please!!
Thanks,
Traci