Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Cooper committed Jan 16, 2017
1 parent ed0d0ba commit 0a571e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/org/dockfx/demo/DockFX.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ public void start(Stage primaryStage) {
@Override
public void handle(ActionEvent event) {
if (dirExist(getUserDataDirectory())) {
dockPane.storeLayout(getUserDataDirectory() + "dock.pref");
try {
dockPane.storeLayout(getUserDataDirectory() + "dock.pref");
}
catch (FileNotFoundException ex) {
ex.printStackTrace();
}
}
}
});
Expand Down

0 comments on commit 0a571e6

Please sign in to comment.