Added fix to window for rectangle rendering, to properly accommodate the content pane in Frame