Monday, September 17, 2018

How to move from one Activity to another using a button?


In this tutorial I show you how move between different interface using jButton. In here include code for button. You can watch video tutorial and download source file related this tutorial.







 private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
     
        Home ho=new Home();
        ho.setVisible(true);
        this.dispose();
     
    }

* Home = interface you need to visit
* Create object that class(Home)
* object.setVisible(make Boolean value as true )
* this = current class and dispose use remove current class.

Download project source file>>

No comments:

Post a Comment