it means when I click a button in my JFrame, a JDialog will be shown.I want to ban my JFrame, it won't be touch but still be shown on screen. I use command in my frame:
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
MyDialog md=new MyDialog(MyFrame.this);
MyDialog.setVisible(true);
}
});
And in class MyDialog extends JDialog:
public MyDialog(MyGUI myGUI) {
super(myGUI,true);}
Have something wrong in my code? or Have another way to make it? Please help me!!