java - Updating JList when elements are added froma different Jpanel -


i have problem application use netbeans gui builder havea jlist contains elements added element jlist, program have 2 tabs, first tab contain jpanel contains jlist , second tab contain jpanel. want add element jlist second tab, add successful nut when swith first tab contains jlist elements added not therethe element jlist contains elements added begining.

there no problems add method fine, question how update jlist when add elements anoother jpanel

when adding elements, make sure added list model. call firecontentschanged().


Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -