What is the best way to load images for a canvas then? Do I have to
add them to the document and hide them with css? Or are there other /
better ways?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to goo
You need to add the image to the document (e.g. RootPanel.get().add(image)
as a bare minimum)
On Thu, Jan 27, 2011 at 9:19 AM, gex wrote:
> Hi, I just tried to load an image in GWT.
>
> The code is the following:
>
>final Image image = new Image();
>
>
>image.addLoadListe
Hi, I just tried to load an image in GWT.
The code is the following:
final Image image = new Image();
image.addLoadListener(new LoadListener() {
public void onError(Widget sender) {
Test.label.setText("An error occurred while loading.");