I am working on a project which is a software to draw block flow diagrams like below,
I tried to achieve drag and dropable blocks using swing DnD, but how to connect them ?
Someone suggested me to use Jgraph API but i don't know how to use it.
Please suggest me how can I design a gui in which flow diagrams can be designed.
If possible please give me a code example.
Please help me I am in a great need of it.
Thanks in advance.
Whatever component contains to the blocks needs to draw the connectors. This will involve an overridden paintComponent() method as well as a bit of math. And you'll just be recreating the functionality that things like JGraph probably specialize in.