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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -