开发者

JUNG - adding an edge or a node dynamically in a graph

开发者 https://www.devze.com 2023-03-23 11:05 出处:网络
I use Java and Jung for an application with graphs. I want to add dynamically an edge to a graph while it is visible. In particular, I choose a node开发者_Go百科 from a list (JComboBox) and when I pre

I use Java and Jung for an application with graphs. I want to add dynamically an edge to a graph while it is visible. In particular, I choose a node开发者_Go百科 from a list (JComboBox) and when I press a button an edge shall be created between that node and a given node. However, when I do that I get a Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException message. I would appreciate any help.

0

精彩评论

暂无评论...
验证码 换一张
取 消