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
Post a Comment