Button With Image : PushButton « GWT « Java






Button With Image


package com.java2s.gwt.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.ImageBundle;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.PushButton;

import com.google.gwt.user.client.ui.AbstractImagePrototype;

public class GWTClient implements EntryPoint {
  public void onModuleLoad() {
    PushButton pushButton = new PushButton(new Image("images/Logo.png"));
    RootPanel.get().add(pushButton);
  }
}




           
       








GWT-buttonWithImage.zip( 5 k)

Related examples in the same category