Páginas

27 de febrero de 2011

button with icons


primer tipo de icono con boton

final IButton stretchButton = new IButton("");
stretchButton.setWidth(50);
stretchButton.setShowRollOver(true);
stretchButton.setShowDisabled(true);
stretchButton.setShowDown(true);
stretchButton.setTitleStyle("Stretch Button");
stretchButton.setIcon("icons/16/find.png");

Segundo tipo de icono con boton

final Button cssButton = new Button("");
cssButton.setShowRollOver(true);
cssButton.setShowDisabled(true);
cssButton.setShowDown(true);
cssButton.setIcon("icons/16/icon_add_files.png");

Tercero tipo de icono con boton

final ImgButton imgButton = new ImgButton();
imgButton.setWidth(18);
imgButton.setHeight(18);
imgButton.setShowRollOver(true);
imgButton.setShowDown(true);
imgButton.setSrc("[SKIN]/ImgButton/button.png");





No hay comentarios: