开发者

How to add static content to a GWT project in eclipse

开发者 https://www.devze.com 2023-01-17 04:22 出处:网络
any quick hint to an article for adding static 开发者_运维百科content to a GWT project (ex:images)

any quick hint to an article for adding static 开发者_运维百科content to a GWT project (ex:images)

Regards


You have basically two ways of doing this:

  1. ImageResource Article 1 Article 2

  2. You can just drag and drop your image into the war-folder of your project. If you want to display that image you would just create an HTML object and use the setContent()-function to display it(using the img-tag you know from HTML)

I would use number 1 because it uses css sprites to optimize the loading time of your application.

0

精彩评论

暂无评论...
验证码 换一张
取 消