So I am currently attempting to create a simple Javaspace Topic Board as a side project, to do this I have a basic intereface that allows for Topics and messages to be added from a text field into two seperate DefaultListModel
s, my questions is this:
Is there any way when selecting an element from Jlist1
using a selectionlistener, to open an instance of Jlist2
for that specific element? This must then display messages for the topic in Jlist1
, selecting another topic in Jlist1
would have the same effect vice versa.
I apologize for the lack of code, this is due to technical issues regarding a small child, juice and my old system.
How about this? You listen to selection in the first list, and change the model of the second list based on that: