Implementing Drag and Drop on JGraph

Posted on 2004-09-17
Medium Priority
Last Modified: 2013-11-23
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.

Question by:anshuma
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 35

Accepted Solution

TimYates earned 1500 total points
ID: 12085759

Author Comment

ID: 12086795
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.
        model.insert(cells, cs, null, attributes);
5 errors


Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question