Skip to Content
0
Sep 08, 2004 at 01:16 PM

Button with an image...

31 Views

Hi everyone,

I am trying to put on a Button a jpeg.

This is the code :

Button bt1 = new Button("bt1");

bt1.setEncode(false);

bt1.setText("<img src=\"Winter.jpg\">");

The Winter.jpeg is located in the \dist\images folder.

When I run the iView, the image is not found.

Does anyone know how to deal with this.

Thank you.