Is it impossible to call another JInternalFrame or JPanel [saved as NewJIF.java] from the main JFrame [saved as MainJFrame.java] in Netbeans?

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 ...

+3
source share
1 answer

, . ActionListener. , .

Swing . , ActionListener, .

+1

Source: https://habr.com/ru/post/1788651/


All Articles