How can you prevent the JInternalFrame
not to open more once, currently in my application it opens many times. Also how can I make my application run only if there is not the same application running.
This is the code for JInternalFrame
private void Cash_ButtonActionPerformed(java.awt.event.ActionEvent evt) {
Provider provider = new Provider();
MainMenu.add (provider);
provider.setClosable(true);
}