I'm doing a small project which counts word from .txt files or webpages. while doing it, I got a problem.
There are GUI windows A, B
A performs targeting .txt files in local or webpages. B performs printing text from the target and giving options of whether or not a user starts counting words from the text
so, when a user clicks the button 'word count' in B, the user can see word list and word count each word in A. I'd like to get Map<String word, Integer frequency>
from B as soon as the user clicks the button 'word count' and to show words and frequency each word at JList
in A.
The problem is that I cannot come up with how to handle events from B in A. one of the ways I considered is creating a class with A,B in it as member... but I'm not able to proceed..
p.s. I'm Korean novice programmer. so, please understand my poor English skill..