/** Perform a capture of the active window */ public void active() { try { upload( new ImageUpload( ScreenshotUtil.capture( WindowUtilProvider.getWindowUtil().getActiveWindow().getBounds()))); } catch (final Exception e) { logger.log(Level.SEVERE, "Unable to take the active window screenshot", e); showException(e); } }
/** Perform a full screenshot action */ public void full() { upload(new ImageUpload(ScreenshotUtil.capture(DisplayUtil.getRealScreenSize()))); }