RFR: 8338103: Stabilize and open source a Swing OGL ButtonResizeTest [v7]
Manukumar V S
mvs at openjdk.org
Wed Aug 28 09:48:44 UTC 2024
On Wed, 28 Aug 2024 09:39:13 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:
>> Ohh you are talking about the BufferedImage object, yes it is needed as the screen capture is inside a try block.
>
> I meant to say -- Can we return the captured screen like..
>
> `return robot.createScreenCapture(new Rectangle(buttonLoc.x, buttonLoc.y, button.getWidth(), button.getHeight()));`
>
> If it is possible probably `BufferedImage bimage` object can be removed.
Done, removed it.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20532#discussion_r1734351830
More information about the client-libs-dev
mailing list