Skip to content
Snippets Groups Projects
Commit e7444fa1 authored by Jefferson Quesado's avatar Jefferson Quesado
Browse files

Estilo

parent 1102ca96
No related branches found
No related tags found
No related merge requests found
......@@ -15,16 +15,15 @@ import totalcross.ui.MainWindow;
public class App extends MainWindow {
public App() {
}
@Override
public void initUI() {
Container c = new Container();
LinkedHashMap<String, String> hash = new LinkedHashMap<>();
hash.put("hash", "map");
Button btn = new Button("Hello world?");
btn.addPressListener(e -> {
HashMap<String, String> hash2 = CollectionUtils.getHashMap(hash);
c.removeAll();
......@@ -34,9 +33,9 @@ public class App extends MainWindow {
c.add(l, LEFT, AFTER, FILL, PREFERRED);
});
});
Button btn2 = new Button("Hello world direct?");
btn2.addPressListener(e -> {
c.removeAll();
c.add(new Label("resultados direto"), LEFT, TOP, FILL, PREFERRED);
......@@ -45,9 +44,9 @@ public class App extends MainWindow {
c.add(l, LEFT, AFTER, FILL, PREFERRED);
});
});
Button btn3 = new Button("Hello world bifunction?");
btn3.addPressListener(e -> {
c.removeAll();
c.add(new Label("resultados bifunction"), LEFT, TOP, FILL, PREFERRED);
......@@ -60,7 +59,7 @@ public class App extends MainWindow {
f.apply(s, c);
});
});
Button btnAdd = new Button("Adicionar ao hashmap");
Edit edKey = new Edit();
Edit edValue = new Edit();
......
......@@ -7,5 +7,4 @@ public class SampleApp {
public static void main(String[] args) {
TotalCrossApplication.run(App.class);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment