JGraphX is an open source Java Swing Component. It is the architecture written after JGraph 5, but not named JGraph 6 because it is rewritten and the API is entirely different.
Questions tagged [jgraphx]
182 questions
0
votes
1 answer
JGRAPHX: How to change the style of a group of vertices
In my project, when I do a grouping of vertices, by default is adding a dotted shape in my edge.
I wish I could add a picture on this ledge where the User can interact.
For example:
not expanded:
expanded:

albsilva
- 121
- 6
0
votes
1 answer
Get Parent Vertex from a JGraphX Tree
Suppose I have a graph like this:
Suppose I also have a reference to the (Object) cell 573. Is there a way I can get a reference to its parent in the graph, the (Object) cell 792? Can't seem to find an answer in the api. I'm still pretty new to…

Cartesian Theater
- 1,920
- 2
- 29
- 49
0
votes
1 answer
How to react on label movement? (like cellsAdded, cellsMoved, cellsResized)
I want to get the new labeloffset after a label of a cell was moved.
For example, after you add a cell mxGraph.cellsAdded() is called. After a cell is moved mxGraph.cellsMoved() is called. But when you move a label of a cell, is there any method,…

jay
- 1
- 2
0
votes
1 answer
java graph visualization w/ topological layout
Is there a graph visualization library which supports laying out the graph in a way such that
the X(or Y) coordinates of nodes are topologically sorted?
Alternatively, I could assign a number to every node, it could lay out the nodes in a way that…

Abhishek Anand
- 3,789
- 2
- 21
- 29
0
votes
1 answer
NullPointerException and MouseListener in a graph
I am trying to use this code to change the opacity of some vertices connected to the vertex clicked in a jgraphx, and when you click somewhere outside the vertices it will rechange the opacity. When a vertex is clicked, its value/string is queried…

user2598911
- 379
- 2
- 6
- 22
0
votes
1 answer
Highlighting multiple cells in jgraphx
I use this code to Highlight the vertex I click and its child by changing opacity. It only works however for the next child connected to the vertex I select. How could I do the same thing, clicking a vertex, but highlight also all the vertices…

user2598911
- 379
- 2
- 6
- 22
0
votes
1 answer
JButton and jgraphx wont show up at the same time
I have tried several ways, but still havent found the solution. I have a jgraph in a frame and I want to add a Jbutton in that frame also in a specific location. However I only get one of them when i run the program, because they expand to the whole…

user2598911
- 379
- 2
- 6
- 22
0
votes
0 answers
How to send one variable from one class to another for gui purpose?
I am using Eclipse/Java 7. I have a class, which gets some values from queries and saves them in the 2 dimensional array path. Then I have made another class which designs 2 linked blocks. What I want to do is get the values of path1[0] and…

user2598911
- 379
- 2
- 6
- 22
0
votes
1 answer
Graph wont show up
I am very new with gui and java so I am just trying out some things. I have this small code similar to Hello World, and even though there are no errors, when i run it all I get in the console is: mxGraph version "2.1.1.0"
Any ideas what I did wrong?…

user2598911
- 379
- 2
- 6
- 22
0
votes
1 answer
Change Style of mxCell
I have to re-engineer a Java program which uses the old version 5 of JGraph. I have to replace this package with the new version 6.
It was possible in version 5 to create a cell with an HTML-Object, so I could change the style of a cell into a style…

TobiasH
- 83
- 1
- 8
0
votes
1 answer
i want to delete edge (connector) from vertices which are seleted. i am using mxgraph
i want to delete edge which is actually connector between veritce of two shapes. i want to delete connector between the vertices which are selected by click a button.
i have used this code but it does not give me help.
…

Sara Khan
- 1
- 1
- 2
0
votes
0 answers
mxGraphComponent in Applet
When i use mxGraphComponent in an applet, this applet run in appletviewer in eclipse but it don't run in any browser because it throws an ExceptionInInitializerError Exception.
Searching on the internet I have seen that mxGraphComponent should be…

RedVelvet
- 1,683
- 3
- 15
- 24
0
votes
1 answer
JTree in JGraphX
In the EditorPalette, the templates are represented using JLabels which can be dragged and dropped in the mxGraphComponent, right ?
However, I want to add these templates to the EditorPalette using a hierarchical structure via JTree, and the nodes…

user1943750
- 1
- 3
-1
votes
2 answers
JgraphX How can you make an edge connect a vertex to another edge (instead of another vertex)?
I want to able to use an edge to connect a vertex and another edge (which is connecting two other vertices). I want to change the code accordingly so that I will be able to do this connection from the user interface (just like you do for two…

Ana Mihai
- 11
- 2
-1
votes
1 answer
What are the improvements of JGraphX vs JGraph 5
I read on a lots of posts saying that JGraphX corresponds to version 6 of JGraph. They changed the name because they rewrote all the code from scratch....Ok !
I'm using JGraph 5 and I downloaded JGraphX and I looked a little bit the "new" code but…

JoG
- 962
- 2
- 11
- 17