I have three files with lists of data. File 1 is:
Adam Smith, Green
Roger Clemens, Yellow
Tommy Pickles, Purple
Roger Rabbit, Yellow
File 2 is
Nancy Drew, Green
Adam Oates, Blue
Johnny Tsunami, Yellow
Adam Ant, Blue
File 3 is
Jim Morrison, Purple
John Kennedy, Blue
Stevie Ray, Yellow
Abe Lincoln, Blue
I made the function:
void personColor(string favColor)
This function prints a list of every person whose associating color is defined by string favColor. This function works wonderfully and when called directly, prints to the output screen of my IDE.
Now, for my assignment I need to create a user interface using java.Swing components. Is there a way to use JTextArea as an output for my function? Or is there any other way that I can call personColor and have my output show up on a java.swing component without changing the function personColor?
Thanks!
Adam Smith, Green
Roger Clemens, Yellow
Tommy Pickles, Purple
Roger Rabbit, Yellow
File 2 is
Nancy Drew, Green
Adam Oates, Blue
Johnny Tsunami, Yellow
Adam Ant, Blue
File 3 is
Jim Morrison, Purple
John Kennedy, Blue
Stevie Ray, Yellow
Abe Lincoln, Blue
I made the function:
void personColor(string favColor)
This function prints a list of every person whose associating color is defined by string favColor. This function works wonderfully and when called directly, prints to the output screen of my IDE.
Now, for my assignment I need to create a user interface using java.Swing components. Is there a way to use JTextArea as an output for my function? Or is there any other way that I can call personColor and have my output show up on a java.swing component without changing the function personColor?
Thanks!