PDA

View Full Version : Button on right-top corner in tool bar



sokulkarni
6 Nov 2009, 1:09 AM
ToolBar toolBar = new ToolBar();
Button deleteAction = new Button();
Button helpAction = new Button();
deleteAction.setWidth(20);
deleteAction.setToolTip(ecCompMessagesGWT.rmc_delete());
deleteAction.addStyleName("icon-delete-ec");
toolBar.add(deleteAction);


helpAction.setWidth(20);
helpAction.setToolTip (ecCompMessagesGWT.rmc_help());
helpAction.addStyleName("icon-help");
helpAction.setPosition(30,0);
toolBar.add(helpAction ); // Place this icons on right top corner