0
votes

Just starting with CodeName One and the hello world project with the GUI builder. I added an action listener (through the GUI Builder) and a line inside it to show up a dialog box:

protected void onMain_ButtonAction(Component c, ActionEvent event) {
    Dialog.show("Hello", "Hi there!", "OK", null);
    }

Then I click on "Simulate Device", the phone does show up and I can click the button but no Dialog pops up? Any hint?

1

1 Answers

1
votes

Generally this should work, but is it possible you don't have an override annotation there?

Did you rename the form or do you have another button with the same name?

I suggest checking out this tutorial.