Class ScreenshotHelper
java.lang.Object
net.simplace.ui.service.ScreenshotHelper
Creates screenshots of GUI components and copies them to the clipboard or saves them to a file.
- Author:
- ckunze
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyScreenshotToClipboard(Component aComponent) Creates a screenshot of a GUI component and copies it to the system clipboard.static voidcopyScreenshotToFile(Component aComponent, File aFile) Creates a screenshot of a GUI component and saves it as PNG file.
-
Method Details
-
copyScreenshotToClipboard
Creates a screenshot of a GUI component and copies it to the system clipboard.- Parameters:
aComponent- the component to be copied to the clipboard
-
copyScreenshotToFile
-