• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1103
  • Last Modified:

Implementing Drag and Drop on JGraph

Hi all,
    any one of familiar with

import org.jgraph.JGraph;
import org.jgraph.graph.*;

if yes then I have a tree , what I need to do is drag and drop a node/leaf of the tree on the graph. Can somebody give me any leads/sample code.

I also need links to a very comprehensive tutorial on implementing Drag and Drop.

regards
0
anshuma
Asked:
anshuma
1 Solution
 
anshumaEngineeringAuthor Commented:
I tried running the code but I am getting the following errors


C:\j2sdk1.4.2_04\bin>javac HelloWorld.java
HelloWorld.java:49: cannot resolve symbol
symbol  : method createMap ()
location: class org.jgraph.graph.GraphConstants
        Map helloAttrib = GraphConstants.createMap();
                                        ^
HelloWorld.java:60: cannot resolve symbol
symbol  : method createMap ()
location: class org.jgraph.graph.GraphConstants
        Map worldAttrib = GraphConstants.createMap();
                                        ^
HelloWorld.java:71: cannot resolve symbol
symbol  : method createMap ()
location: class org.jgraph.graph.GraphConstants
        Map edgeAttrib = GraphConstants.createMap();
                                       ^
HelloWorld.java:72: cannot resolve symbol
symbol  : variable CLASSIC
location: class org.jgraph.graph.GraphConstants
        int arrow = GraphConstants.CLASSIC;
                                  ^
HelloWorld.java:81: insert(java.lang.Object[],java.util.Map,org.jgraph.graph.Con
nectionSet,org.jgraph.graph.ParentMap,javax.swing.undo.UndoableEdit[]) in org.jg
raph.graph.GraphModel cannot be applied to (java.lang.Object[],org.jgraph.graph.
ConnectionSet,<nulltype>,java.util.Map)
        model.insert(cells, cs, null, attributes);
             ^
5 errors
_________________________________

regards
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now