File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rectangle drawn when mouse is dragged

 
Sanam Kumar
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i am stuck up with a problem,

when i click on a button on the applet
and when i drag the mouse and release it a rectangle has to be drawn,
it would be kindful if anyone could help me in getting this done


Regards
Sanam
 
Craig Wood
Ranch Hand
Posts: 1535
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The class Rectangle extends from Rectangle2D which extends RectangularShape. All three classes have methods for manipulating rectangles and these are listed in the Method Summary and Methods inherited from ... sections of the Rectangle api.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic