public boolean isDirty(){
  for (int i=0, size=PANE_ITEMS_LIST.size(); i < size; i++) {
    PaneItem currentItem=PANE_ITEMS_LIST.get(i);
    if (currentItem.isDirty())     return true;
  }
  return false;
}

public boolean isDirty ( ) { for ( int i = 0 , size = PANE_ITEMS_LIST . size ( ) ; i < size ; i ++ ) { PaneItem currentItem = PANE_ITEMS_LIST . get ( i ) ; if ( currentItem . isDirty ( ) ) return true ; } return false ; }
determines if any of the panes stored within this optionpane require saving .
