0
How to pass data from jdialog to jframe and refresh jframe?
I have a jframe with jcombobox inside that. And have a jdialog to add, remove or update jcombobox data from that. How to pass data from jdialog to jframe and refresh jcombobox?
11 Respostas
+ 1
ok thank a lot, i try to use your help
0
you mean in jframe:
write this code:
public jframe(List){
}
////////////////////////////////////
you mean in jdialog:
create List of my data. and call
jframe jf = new jframe(List)
Right???
0
my combobox update from database when run app.
i have a button that open jdialog.
i want add data to combobox from jdialog
0
do you have example with code?
0
why not use static list in jframe and add data to this list in jdialog??
0
it works, just i dont know how update jcombobox after closing jdialog