how to draw rectangle around mouse cursor in java?

Posted by Nitz on Stack Overflow See other posts from Stack Overflow or by Nitz
Published on 2010-06-04T05:48:54Z Indexed on 2010/06/04 6:09 UTC
Read the original article Hit count: 195

Filed under:
|

hey guys
i had made one module in my project,
on which user can draw any thing using pencil
now i want to create eraser for that drawing module
so i need that as soon as user click on that eraser button then, around my mouse cursor i want little rectangle shape around it.
so user can use it to erase the some parts in drawing.

may be smilier kind of things happen in mspaint but i am doing this in java - swing.

how to do this, any suggestion?

thanks in advance...
nitz.

© Stack Overflow or respective owner

Related posts about java

Related posts about swing