Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions jdk/src/share/classes/java/awt/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ private void checkKeycodeArgument(int keycode) {
* @return Color of the pixel
*/
public synchronized Color getPixelColor(int x, int y) {
checkScreenCaptureAllowed();
Color color = new Color(peer.getRGBPixel(x, y));
return color;
}
Expand Down