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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -