bonjour à tous
Utilisateur de gwt designer, j'ai voulu essayer gwtext.
après avoir réglé les paramètres gwtext, j'ai voulu essayer les Widgets
voilà mon problème :
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);
}
}
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);
}
}
le résultat de la compilation, aucune erreur.
le contenu coucou_ ne s'affiche pas correctement.
débutant avec gwtext , quelqu'un aurait-il une petite idée.
merci.
Partager