java - JComboBox dynamically updating values -
i trying update items of combo box xml nodes, nodes when run loop, somehow not able add them items of combobox public class xmltoexcelgui extends javax.swing.jframe { public java.io.file file; public xmltoexcelgui() { initcomponents(); } public void setprogressbarvalue(string s){ jprogressbar1.setstring(s); } @suppresswarnings("unchecked") private void initcomponents() { jlabel1 = new javax.swing.jlabel(); jbutton1 = new javax.swing.jbutton(); jlabel2 = new javax.swing.jlabel(); jprogressbar1 = new javax.swing.jprogressbar(); jbutton3 = new javax.swing.jbutton(); jscrollpane1 = new javax.swing.jscrollpane(); jtextpane1 = new javax.swing.jtextpane(); jcombobox1 = new javax.swing.jcombobox(); setdefaultcloseoperation(javax.swing.windowconstants.exit_on_close); jlabel1.settext("xmltoexcel"); jbutton1.settext("choose ...