Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // File Name : AddTaskForm.java
- package com.mycompany.myapp.gui;
- import com.codename1.ui.Form;
- import com.codename1.ui.FontImage;
- /**
- *
- *@author mabt
- */
- public class AddTaskForm extends Form {
- //Generate constructor : tick "Form()" only.
- public AddTaskForm(Form previous) {
- setTitle("Add a new task");
- // Ajouter une commande "Back"
- //??? = indiquer la destination du boutton back.
- getToolbar().addMaterialCommadToLeftBar(" ",FontImage.MATERIAL_ARROW_BACK, e-> previous.showBack());
- }
- }
Add Comment
Please, Sign In to add comment