There are two classes: A and B.
Class A has an empty JList. Class B has a JButton.
So I want to add an string to the list when I press the button. I got the layout, but the problem is in passing the item.
Can someone code it in a simple way please??
Thanks in Advance.