File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes I want to draw circle with mouse dragged in below program. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "I want to draw circle with mouse dragged in below program." Watch "I want to draw circle with mouse dragged in below program." New topic
Author

I want to draw circle with mouse dragged in below program.

looka dicosta
Greenhorn

Joined: Nov 22, 2012
Posts: 21

Hello Everyone,

My below program is capable of drawing polygon with mouse clicked and pressed. Now I want to draw circle in this program when mouse is dragged.

It will be very appreciable if you can add changes to current code only.



Thanks in advance
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4529
    
    5

looka dicosta wrote:
Hello Everyone,

My below program ...


... obtained at http://stackoverflow.com/questions/13507867/drawing-nonoverlapping-n-sided-polygon-circles-and-ellipse-with-mouse-on-jpane


luck, db
There are no new questions, but there may be new answers.
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2233
    
  47
We are NotACodeMill (← click) but we will advise you on how to write the code yourself.

I suggest you start by reading a tutorial on mouse listeners and then a tutorial on 2D graphics
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want to draw circle with mouse dragged in below program.