Netbeans template AboutBox Java
问题 I used this code previously in netbeans 6.9.1 but it does not seem to work in 7.1.1, it underlines .getApplication() with the hint "cannot find symbol". How can I make this work again? JFrame mainFrame = TestProject.getApplication().getMainFrame(); AboutBox newAboutBox = new AboutBox(); newAboutBox.setLocationRelativeTo(mainFrame); TestProject.getApplication().show(newAboutBox); Here is a similar question, but the solution does not work. 回答1: Have you checked the static method getApplication(