i want to create a program in which i am retrieving data from database and showing in gui frame but i want when submit pressed old frame's data should be get erased but instead of that it appends in that
thank you for your help
Michael Dunn
Rancher
Joined: Jun 09, 2003
Posts: 4041
posted
0
Instead of disposing/recreating everything,
just change the text of the question label
and the four answer radiobuttons
sagar khana
Greenhorn
Joined: Jan 15, 2012
Posts: 15
posted
0
Michael Dunn wrote:Instead of disposing/recreating everything,
just change the text of the question label
and the four answer radiobuttons
that is changed every time i press submit
but still old data are still in panel didnt erased out
Rob Camick
Ranch Hand
Joined: Jun 13, 2009
Posts: 1652
posted
0
Your launch() method should NOT create components.
It should do the database query and then update existing components on the frame by using setText(), setModel() or whatever method is used to change the data in an existing component.
sagar khana
Greenhorn
Joined: Jan 15, 2012
Posts: 15
posted
0
Rob Camick wrote:Your launch() method should NOT create components.
It should do the database query and then update existing components on the frame by using setText(), setModel() or whatever method is used to change the data in an existing component.