How to call an alerady made Form with CodeNameOne with the code ligen clicking on a button

35 Views Asked by At

i want to call a form already designed with CodeNAmeOne and call it with

protected void onConnexion_Button1Action(Component c, ActionEvent event) {
    TextField tf1 = findTextField(Display.getInstance().getCurrent());
    String email = tf1.getText();
    if(email.equals("client")){
        Form f;
        f.show();
    }

but didnt find how to call the form i want from the design i can get teh components but not the form please i need the answer soon

1

There are 1 best solutions below

0
Shai Almog On BEST ANSWER