How can i keep the icon always alive, on click it does not get reloaded.
public static class SoftButton extends Button
{
private Image image;
public SoftButton()
{
setLabel("test");
setBackground(Color.red);
}
public void paint(Graphics g)
{
super.paint(g);
image = Toolkit.getDefaultToolkit().getImage("/tmp/world.gif");
g.drawImage(image, 0, 0, this);
}
}