Solved

Implementing Drag and Drop on JGraph

Posted on 2004-09-17
2
1,034 Views
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.

regards
0
Comment
Question by:anshuma
[X]
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
2 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 500 total points
ID: 12085759
0
 

Author Comment

by:anshuma
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.
ConnectionSet,<nulltype>,java.util.Map)
        model.insert(cells, cs, null, attributes);
             ^
5 errors
_________________________________

regards
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

726 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