Skip to content

Commit 27a59d0

Browse files
author
brunomnsilva
committed
Minor fix of CSS warning
1 parent a78df01 commit 27a59d0

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

releases/JavaFXSmartGraph-0.9.jar

-13 Bytes
Binary file not shown.

releases/JavaFXSmartGraph-0.9.zip

-106 Bytes
Binary file not shown.

src/com/brunomnsilva/smartgraph/graphview/SmartGraphPanel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ private void addVertex(SmartGraphVertexNode<V> v) {
418418
if (graphProperties.getUseVertexLabel()) {
419419
SmartLabel label = new SmartLabel(labelText);
420420

421-
label.setStyle("vertex-label");
421+
label.getStyleClass().add("vertex-label");
422422
this.getChildren().add(label);
423423
v.attachLabel(label);
424424
}
@@ -441,7 +441,7 @@ private void addEdge(SmartGraphEdgeBase e, Edge<E, V> edge) {
441441
if (graphProperties.getUseEdgeLabel()) {
442442
SmartLabel label = new SmartLabel(labelText);
443443

444-
label.setStyle("edge-label");
444+
label.getStyleClass().add("edge-label");
445445
this.getChildren().add(label);
446446
e.attachLabel(label);
447447
}

0 commit comments

Comments
 (0)