Well, I have tried using a LayoutContainer, it works, but there is a problem: The layoutContainer is added to a VerticalPanel which is the right side of a HorizontalSplitPanel that is the main widget of a Window. So when the Window is not maximized, the Resizable works fine, but when it is maximized, it's like if the Resizable does not exist!
Code:
public class PhotoOverview extends VerticalPanel{
private Image overview=new Image();
private LayoutContainer lc=new LayoutContainer();
public PhotoOverview(){
super();
overview.addLoadListener(new LoadListener(){
public void onError(Widget sender) {
MessageBox.alert("Erreur", "Erreur de chargement de la photo", null);
}
public void onLoad(Widget sender) {
if(box!=null)
box.close();
}
});
lc.setLayout(new FitLayout());
lc.add(overview);
Resizable rsz = new Resizable(lc);
rsz.preserveRatio=true;
add(lc);
}