boolean (Component view) { if (view instanceof Dialog && !((Dialog)view).isResizable()) return true; if (view instanceof Frame && !((Frame)view).isResizable()) return true; return super.isDisabled(view); }