Skip to content

Commit a9a7e8b

Browse files
committed
Add clarifying Javadoc comment
1 parent 1eb41d9 commit a9a7e8b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/ui/src/main/java/org/phoebus/ui/javafx/Screenshot.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public static BufferedImage bufferFromImage(final Image jfx) {
7171
(int) jfx.getHeight(),
7272
BufferedImage.TYPE_INT_ARGB);
7373
SwingFXUtils.fromFXImage(jfx, img);
74-
7574
return img;
7675
}
7776

@@ -153,6 +152,12 @@ public File writeToTempfile(final String file_prefix) throws Exception {
153152
/**
154153
* Puts the {@link Node} as image data onto the clipboard.
155154
*
155+
* <p>
156+
* <b>NOTE:</b> on Windows calling this will throw an {@link java.io.IOException}, but screenshot will still be available on
157+
* the clipboard. <a href='https://stackoverflow.com/questions/59140881/error-copying-an-image-object-to-the-clipboard'>This Stackoverflow post</a>
158+
* suggests the printed stack trace is in fact debug information.
159+
* </p>
160+
*
156161
* @param node Node from which to take a screenshot.
157162
*/
158163
public static void copyToClipboard(Node node) {

0 commit comments

Comments
 (0)