GWT overlapping images -


i have 1 window panel , want set image in it.so do,

window window = new window(); panel panel = new panel();   absolutepanel absolutepanel = new absolutepanel();     image image = new image("img/heat_map.jpg"); absolutepanel.add(image);   image ap1image = new image("img/end.png"); ap1image.getelement().getstyle().setmargin(1, unit.px); absolutepanel.add(ap1image);    panel.add(absolutepanel); window.add(panel); 

but stuck in code can't overlap small icon image on main image(heat_map). want onclick event on icon image.but can't overlap images in window panel.please me out.

it seems using gxt not pure gwt. anyway - absolutepanel should implement add(widget, int left, int top) method need use instead of simple add(widget)


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -