I use the below code 2 show another form but when I click the button 10 time 10 forms are getting opened how to only open 1 form ?

NewJFrame1 nj = new NewJFrame1();
nj.setVisible(true);