Updating the output writer to try using the AWT API if the default
resizing doesn't work