Results 1 to 10 of 13

Thread: How to create ImageResource?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jul 2012
    Vote Rating

    Default Answered: How to create ImageResource?

    It's not clear to me how to create/use ImageResource. I'm trying to create a button and give it an icon like this:

    TextButton button = new TextButton();
    button.setIcon( anImageResource ) -- and this is what I've no idea how to do.

    Please help. Thanks.

  2. Here's how we do it:

    public interface Images extends ClientBundle {

    public Images INSTANCE = GWT.create(Images.class);

    ImageResource foo();


    Note that the PNG would need to be in the same package directory as the class.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts