Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created February 14, 2016 16:41
Show Gist options
  • Save codenameone/99cdefe0c73096ebdbfb to your computer and use it in GitHub Desktop.
Save codenameone/99cdefe0c73096ebdbfb to your computer and use it in GitHub Desktop.
Sample of using a Button in Codename One
Form hi = new Form("Button");
Button b = new Button("My Button");
hi.add(b);
b.addActionListener((e) -> Log.p("Clicked"));
@codenameone
Copy link
Author

Sample usage of Button.

From the Codename One project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment