Arvind
Arvind

Reputation: 6474

gwt beginner- how to show an image as part of a gwt module

I am trying to display an image using GWT Graphics library--

In this the javadoc says--

 Image(int x, int y, int width, int height, String href)

 The URI of the raster image to be displayed is specified as a string.

Now, how do I specify the URI of the image? What is the generic method of specifying the URI for an image in GWT? And where do I store the image? Within "war" or "war/web-inf/" or some other location?

Upvotes: 1

Views: 102

Answers (1)

Andreas
Andreas

Reputation: 2301

You can select an arbitrary directory for saving images; I ususally use war/images. The Images can then be displayed using new Image("images/myimage.png") in a panel.

Upvotes: 1

Related Questions