I haven't seen something like that. I know that with AWT, you can use
an icon and put it into a label, but this is not the case because you
can't use AWT with GWT. But still I tell you how you should do it in
AWT:
   JLabel label = new JLabel();
   ImageIcon icon = new ImageIcon("images/my_image.jpg");
   ImageIcon iconoEscala = new
ImageIcon(icon.getImage().getScaledInstance(400, 400,
java.awt.Image.SCALE_DEFAULT));
   label.setIcon(iconoEscala);



On 22 mar, 20:01, Ralf B <[email protected]> wrote:
> Is there a very very simple way to create a label with an image
> without using CSS, or is the only way to use HTML objects? I was
> hoping for a constructor like this:
>
> Image myImage = new Image(url);
> Label myLabel = new Label(myimage, "This is the text");
>
> Best Regards :)

-- 
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.

Reply via email to