making drag and drop and connect in swing java
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: making drag and drop and connect in swing java

  1. #1
    Join Date
    Apr 2013
    Posts
    3

    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,
    Name:  target.JPG
Views: 223
Size:  11.9 KB

    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.

  2. #2
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    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.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

  3. #3
    Join Date
    Apr 2013
    Posts
    3

    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 ........

  4. #4
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: making drag and drop and connect in swing java

    You're best bet is to look at the JGraph website.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

  5. #5
    Join Date
    Apr 2013
    Posts
    3

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center