I created MainJFrame.java in the myproject package using New project-> java-> java aplication and NewJIF.java in the same package.
When JButton clicked in MainJFrame.java, I want the JInterFrame to open using the new NewJIF (). setVisible (true); inside the actionPerformed () method.
But this does not work ... and caught some people saying that it is impossible in netbeans to call another java class using a swing framework ...
source
share