I am using Netbeans. I have one JFrame with JMenu, and one JDialog. I want to show the dialog when i click the menu, but it doesn't work. I only wrote this codes to my jframe and i didn't add or change any codes on the dialog:
private void jMenu1ActionPerformed(java.awt.event.ActionEvent evt)
{
frm_edi ed= new frm_edi(this,true);
ed.setVisible(true);
}
Help me please. Or if you don't use Netbeans, can you please show me a simple example of a GUI in Java in case of:
The GUI consist of a JFrame with only one button and a JDialog.
When we click the button, it shows the JDialog.
Thank U very much for any help..