java press button then go to another jfram code example
Example: jbutton open jframe java
private void btnButtonActionPerformed(java.awt.event.ActionEvent evt) {
jFrame.setVisible(true);
}
private void btnButtonActionPerformed(java.awt.event.ActionEvent evt) {
jFrame.setVisible(true);
}