1. shemnon
  2. DeckControl

Commits

shemnon  committed e2e5c42

set default skin, in case the default CSS is ignored

  • Participants
  • Parent commits 2f90e82
  • Branches master

Comments (0)

Files changed (1)

File src/main/java/com/github/shemnon/deckcontrol/Deck.java

View file
 import javafx.geometry.Pos;
 import javafx.scene.Node;
 import javafx.scene.control.Control;
+import javafx.scene.control.Skin;
 
 /**
  * Created with IntelliJ IDEA.
         return getClass().getResource("/com/github/shemnon/deckcontrol/" + this.getClass().getSimpleName() + ".css").toString();
     }
 
+    @Override
+    protected Skin<Deck> createDefaultSkin() {
+        return new com.github.shemnon.deckcontrol.skin.SlideDeckSkin(this);
+    }
+
     public void nextNode() {
         if (primaryNodeIndex.get() + 1 < nodes.size()) {
             primaryNodeIndex.set(primaryNodeIndexProperty().get() + 1);