how to reference to other topcomponent
"mcheung63" <[email protected]> Fri, 07 Oct 2016 08:17:01 +0000
| Newsgroups | gmane.comp.java.netbeans.devel |
|---|---|
| Message-ID | <[email protected]> |
now i got a super simple solution, create a Global class:
public class Global {
public static SymbolWindowTopComponent window;
}
then self register the window in the static variable:
Global.window = this;
finally in other window, i can:
Global.window.jLabel1.setText("peter");
BUT IS IT NORMAL? ANY HIDDEN DISADVANTAGE FOR THIS METHOD?
thanks
from Peter