You should use an Image widget instead of setText.

something like

*Image image = new Image();
*

*image.setUrl("'http://www.vella-gulf.navy.mil/Site%20Images/under_construction.jpg";);
*

*// Use image.addLoadListener(...) to manage loading errors

bioText.add(image);
*

regards,
O.


2009/1/3 jwei512 <jwei...@gmail.com>

>
> Hey, so right now I'm having this unusual problem with one of the
> panels I made and I don't quite understand what's happening. Here's my
> code:
>
> bioText = new Panel();
> bioText.setAutoScroll(true);
> String sampleURL = "<img src = 'http://www.vella-gulf.navy.mil/Site
> %20Images/under_construction.jpg<http://www.vella-gulf.navy.mil/Site%20Images/under_construction.jpg>'
> />";
> bioText.setHtml(sampleURL);
>
> ToolbarButton bioNew = new ToolbarButton("New Page");
> bioNew.addListener(new ButtonListenerAdapter() {
>        public void onClick(Button button, EventObject e) {
>                bioText.clear();
>        }
> });
>
> Toolbar editBio = new Toolbar();
> editBio.addButton(bioNew);
>
> So basically I click the button on the toolbar and the panel is
> supposed to clear but it doesn't. This is weird because within the
> same class I do the same identical set of commands just using a
> different toolbar and clearing a different panel and it works fine.
>
> Any ideas?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to