{"action":"created","issue":{"url":"https://api.github.com/repos/jrtom/jung/issues/60","repository_url":"https://api.github.com/repos/jrtom/jung","labels_url":"https://api.github.com/repos/jrtom/jung/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/jrtom/jung/issues/60/comments","events_url":"https://api.github.com/repos/jrtom/jung/issues/60/events","html_url":"https://github.com/jrtom/jung/issues/60","id":168465623,"number":60,"title":"NullPointerException “AWT-EventQueue-0” labelVertex(BasicVertexLabelRenderer.java:84)","user":{"login":"Claus1","id":1247062,"avatar_url":"https://avatars.githubusercontent.com/u/1247062?v=3","gravatar_id":"","url":"https://api.github.com/users/Claus1","html_url":"https://github.com/Claus1","followers_url":"https://api.github.com/users/Claus1/followers","following_url":"https://api.github.com/users/Claus1/following{/other_user}","gists_url":"https://api.github.com/users/Claus1/gists{/gist_id}","starred_url":"https://api.github.com/users/Claus1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Claus1/subscriptions","organizations_url":"https://api.github.com/users/Claus1/orgs","repos_url":"https://api.github.com/users/Claus1/repos","events_url":"https://api.github.com/users/Claus1/events{/privacy}","received_events_url":"https://api.github.com/users/Claus1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-30T12:39:34Z","updated_at":"2016-07-30T13:39:22Z","closed_at":null,"body":"Minimal example. I use Scala so excuse me)\r\n\r\nimport java.awt.Dimension\r\nimport javax.swing.JFrame\r\n\r\nimport edu.uci.ics.jung.graph.util.EdgeType\r\nimport edu.uci.ics.jung.algorithms.layout.StaticLayout\r\nimport edu.uci.ics.jung.graph._\r\nimport edu.uci.ics.jung.visualization.{BasicVisualizationServer, GraphZoomScrollPane, VisualizationViewer}\r\n\r\nobject GrViz {\r\n\r\n  private var svg = new SparseMultigraph[String,String]\r\n\r\n  def add(t: String, str: String, str1: String): Unit =\r\n  {\r\n      svg.addEdge(t, str,str1, EdgeType.DIRECTED)\r\n  }\r\n\r\n  def show_model {\r\n    add(\"t\",\"a\",\"b\")\r\n    show\r\n  }\r\n\r\n  def show{\r\n    var layout = new StaticLayout(svg);\r\n    layout.setSize(new Dimension(800, 600));\r\n    \r\n    var vv = new BasicVisualizationServer[String,String](layout);\r\n    vv.setPreferredSize(new Dimension(350,350)); //Sets the viewing area size\r\n\r\n    var frame = new JFrame(\"View\");\r\n    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n    frame.getContentPane().add(vv);\r\n    frame.pack();\r\n    frame.setVisible(true);\r\n  }\r\n}"},"comment":{"url":"https://api.github.com/repos/jrtom/jung/issues/comments/236365759","html_url":"https://github.com/jrtom/jung/issues/60#issuecomment-236365759","issue_url":"https://api.github.com/repos/jrtom/jung/issues/60","id":236365759,"user":{"login":"Claus1","id":1247062,"avatar_url":"https://avatars.githubusercontent.com/u/1247062?v=3","gravatar_id":"","url":"https://api.github.com/users/Claus1","html_url":"https://github.com/Claus1","followers_url":"https://api.github.com/users/Claus1/followers","following_url":"https://api.github.com/users/Claus1/following{/other_user}","gists_url":"https://api.github.com/users/Claus1/gists{/gist_id}","starred_url":"https://api.github.com/users/Claus1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Claus1/subscriptions","organizations_url":"https://api.github.com/users/Claus1/orgs","repos_url":"https://api.github.com/users/Claus1/repos","events_url":"https://api.github.com/users/Claus1/events{/privacy}","received_events_url":"https://api.github.com/users/Claus1/received_events","type":"User","site_admin":false},"created_at":"2016-07-30T13:39:22Z","updated_at":"2016-07-30T13:39:22Z","body":"If switch to 2.0.1 there is no exception but empty screen with 1/4 red point in left upper corner instead 2 vertex graph. "}}
{"actor":{"display_login":"Claus1"}}