To Make Window groups for Non Sigleton Windows, choose one window as the main window,,i.e., that is the second window can be opened and closed only when first one is present. For example, in my case I have two singleton windows ( as have been described in a different post How to make Singleton windows) or two TopComponents, AlignmentFilterOption and AlignmentView. Here, I have choosen AlignmentFilterOption a my main window. Now in the AlignmentFilterOption TopComponent, (main window) make following changes: 1. make a private TopComponent object and define it as AlignmentView in the constructor private TopComponent tc; tc = new AlignmentView(this.ado.getAlignment()); 2. In componentOpened() function, add AlignmentView object, so that whenever AlignmentFilterOption window is opened, AlignmentView widnow also opens. @Override public void componentOpened() { if (tc != ...
Comments
Post a Comment