1 Attachment(s)
making drag and drop and connect in swing java
Hi all,
I am working on a project which is based on flow diagram like this,
Attachment 31283
I know that I can drag and drop objects by DnD API but how can I connect them ?
I wish that each object(component part) should have desired connectors placing mouse on a connector and then dragging draws a wire and clicking on another connector joins the two.
Please help me to build such type of operation/feature.
I am in a great need please help me
thanks in advance.
Re: making drag and drop and connect in swing java
I think you can do this sort of thing with JGraph which is freely available.
Re: making drag and drop and connect in swing java
Oh thank you yery much,
can i make/define my own custom shapes and number of connection points to each block/component.
Please tell me more ........
Re: making drag and drop and connect in swing java
You're best bet is to look at the JGraph website.
Re: making drag and drop and connect in swing java
hi I am unable to understand how to use jgraph please give me a demo with small code please please