I've done some more testing.
The problem only occurs when I use a PushButton with an image from an
ImageBundle,
public class AddButton extends PushButton{
static Image image = ImageCollection.getImagesInstance().add
().createImage() ;
public AddButton() {
super(image) ;
}
}
when I use a PushButton with a text
public class AddButton extends PushButton{
static Image image = ImageCollection.getImagesInstance().add
().createImage() ;
public AddButton() {
super("add") ;
}
}
setVisible(true) works as expected.
The setVisible is called from a changeListener on a ListBox. I've
moved the setVisible() into a deferedd command. The button is then
made visiblle, but the imag ein not displayed.
Any suggestions?
Thanks,
Danny
On 31 jan, 00:03, Danny Goovaerts <[email protected]> wrote:
> I have the follwing problem with PushButton.
> I hide it using setVisible(false). I then want to show it again using
> setVisible(true). But it is not shown.
> When I replace the PushButton by a regular Button it works as
> expected.
> Does anyone know the cause of this behavior and how to remedy it?
>
> Thanks,
>
> Danny
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---