Search code examples
javagwtgwt-ext

GWT - How to put Widget B on Widget A - help


I am looking someway to put widgets on each other (each on its layer or something...). Something like the Swing CardLayout but with a transparent background support.

For example

I have

Image img=new Image("imageA.png");
HTML h=new HTML("<img src=imageB.png>");

How to put "h" on "img" left upper corner?

Any useful comment is appreciated


Solution

  • You can use AbsolutePanel. It positions it's children at fixed coordinates so you can make them overlap.