I just built a bare bones project with native theme and added the code
below to start() in the main class.
public void start() {
if(current != null){
current.show();
return;
}
Form hi = new Form("Hi World", BoxLayout.y());
hi.add(new Label("Hi World"));
Button testButton = new Button("OPEN DIALOG");
hi.add(testButton);
testButton.addActionListener(l -> {
InteractionDialog id = new InteractionDialog(BoxLayout.y());
for (int i = 1; i <= 5; i++) {
Label text = new Label("Label " + i);
id.add(text);
}
Button disposeButton = new Button("EXIT");
disposeButton.addActionListener(l2 -> {
id.dispose();
});
id.add(disposeButton);
id.setAnimateShow(true);
id.showPopupDialog(testButton); //This does not add components
to the InteractionDialog
// id.show(10, 10, 10, 10); //This will show an
InteractionDialog with components
});
hi.show();
}
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/47b1f891-0736-451c-a96e-7b72aff737cfo%40googlegroups.com.