throw new PageException("Страница не может быть закрыта: ",ex);
}
}
if (current instanceof ActivateSensitive){
ActivateSensitive as = (ActivateSensitive) current;
if (!as.canBeActivated()){
throw new PageException("Текущая панель не может быть деактивирована");
}
as.beforeDeactivate();
}
PageGeneric page = (PageGeneric) jTabbedPane1.getComponentAt(index);