I have 2 frames on my project, the 1 is my main frame and the 2nd one is the frame that only visible if I click the button.
display jframe.class when the button is click.
here is my code in my button action performed
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
jframe jf = new jframe();
jf.setVisible(true);
jf.setAlwaysOnTop(true);
}
This code works but the problem is I want the main frame disable or unclickable while the 2nd frame is visible ...
can I do that the same concept of JOptionPane ?