Answer the question
In order to leave comments, you need to log in
How to disable form reopening?
I am using Java Swing.
In a form I have a button that opens another form.
How do I check if the form is open. can't you open it again?
addClientButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
InsertClientForm insertClientForm = new InsertClientForm("","Добавить клиента");
//if (!insertClientForm.isDisplayable()) {
insertClientForm.setVisible(true);
insertClientForm.pack();
//}
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question