From: Charles H. <cha...@ea...> - 2005-05-12 20:36:33
|
Does anyone know how I should get button images to refresh? I have an array of buttons that I put into a table in a vbox in a window. When I change the image on the button, it doesn't refresh on the screen. I'm changing the image by doing: 0.upto(3) { |i| @buttons[i].add(@noteSet[i].image) } As far as I can tell, everything is working except that the button images aren't changing. If I try to remove them before adding a new one, I get an error about nilset not having that method. (Does attaching a button to a table remove it from the array of buttons?) |