doubt in Java Swing

-2

How do I activate two buttons?  There are two forms, in one there is a button called "OPEN" in another form there is another button called "Regresar"

How do I change classes?

    
asked by Alí 05.10.2018 в 15:41
source

1 answer

0

You should add the following code in the corresponding button and modify the name for the Jframe you want to open:

<!-- language: java -->

Jframe Pantalla_a_abrir= new Jframe();

Pantalla_a_abrir.setVisible(true);
    
answered by 05.10.2018 в 17:55