here is my problem:
- Code: Select all
public class ImageViewer implements EntryPoint {
Panel panel1 = new Panel();
public void onModuleLoad() {
RootPanel.get();
panel1.setTitle("Panel1");
panel1.setHeight("351px");
final Panel Panel2 = new Panel();
panel1.add(Panel2);
Panel2.setCollapsible(true);
Panel2.setTitle("Panel2");
Panel2.setHeight("351px");
final coucou coucou_ = new coucou();
Panel2.add(coucou_);
RootPanel rootPanel = RootPanel.get();
rootPanel.add(panel1, 0, 0);
}
}
- Code: Select all
public class coucou extends Composite {
public coucou() {
final AbsolutePanel absolutePanel = new AbsolutePanel();
initWidget(absolutePanel);
final Panel Panel3 = new Panel();
absolutePanel.add(Panel3, 100, 102);
Panel3.setTitle("Panel3");
Panel3.setSize("100px", "100px");
final Panel Panel4 = new Panel();
absolutePanel.add(Panel4, 300, 102);
Panel4.setTitle("Panel4");
Panel4.setSize("100px", "100px");
final FieldSet fieldSet = new FieldSet("FieldSet");
absolutePanel.add(fieldSet, 16, 29);
fieldSet.setWidth("384px");
final Button button = new Button("New Button");
fieldSet.add(button);
}
}
content coucou_ is not correctly displayed.
somebody would have a small idea.
THANK YOU