This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
}
/** closes windows opened by grp ThreadGroup */
void closeGroup(ThreadGroup grp) {
synchronized void closeGroup(ThreadGroup grp) {
Window win;
ArrayList vec = (ArrayList) windowMap.get(grp);
if (vec == null) return;
/** return true if the ThreadGroup has any windows */
boolean hasWindows(ThreadGroup grp) {
synchronized boolean hasWindows(ThreadGroup grp) {
if ((vec == null) || (vec.size() == 0) || hiddenWindows(vec)) {
return false;
/** removes given window */
private void removeWindow(Window win) {
synchronized private void removeWindow(Window win) {
Object obj = get(win); // obj is threadgroup
if (obj == null) return;
remove(win);