Using Java,I would like to do the project about selected part of the screen by u
ID: 3707212 • Letter: U
Question
Using Java,I would like to do the project about selected part of the screen by using mousedrag to draw a rectangle . I know how to screencapture of fullscreen by robot class but I don’t know how to draw a rectangle for desired part and transfer the location to the screencapture. And can we do it with out the jframe?. Using Java,I would like to do the project about selected part of the screen by using mousedrag to draw a rectangle . I know how to screencapture of fullscreen by robot class but I don’t know how to draw a rectangle for desired part and transfer the location to the screencapture. And can we do it with out the jframe?.Explanation / Answer
Yes, you can draw a rectangle using mousedrag for a desired part.
I am sharing a code sample here which would help you to figure things out clearly:
Go through the entire code and you will figure out what you need to do that.
public SelectionRectangle() {
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.