Netbeans : communicate with other JTopComponent in the same module

Netbeans : communicate with other JTopComponent in the same module

2022/05/01 Java 0
		TopComponent tc = WindowManager.getDefault().findTopComponent("Window2TopComponent");
		Window2TopComponent window2TopComponent = (Window2TopComponent) tc;
		window2TopComponent.jButton1.setText("hello");

Leave a Reply

Your email address will not be published. Required fields are marked *