Skip to content

Commit

Permalink
Added icons and put in exit handler to remove shortcuts to try and st…
Browse files Browse the repository at this point in the history
…op shortcuts from disappearing on windows.
  • Loading branch information
benjwarner committed Jan 29, 2018
1 parent be55070 commit 09e90ea
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
@@ -1,3 +1,4 @@
![alt text](src/main/dist/tabular-128.ico)
# Tabular
## Introduction
Tabular is a GUI providing searching of a static table of data, with the
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
@@ -1,5 +1,5 @@
group 'org.tools4j'
version '1.3'
version '1.4'

apply plugin: 'groovy'
apply plugin: 'java'
Expand Down
Binary file added dist/tabular-1.4.zip
Binary file not shown.
Binary file added resources/icon.psd
Binary file not shown.
Binary file added src/main/dist/tabular-128.ico
Binary file not shown.
Binary file added src/main/dist/tabular-32.ico
Binary file not shown.
Binary file added src/main/dist/tabular-512.ico
Binary file not shown.
Binary file added src/main/dist/tabular-64.ico
Binary file not shown.
Binary file added src/main/dist/tabular.ico
Binary file not shown.
9 changes: 9 additions & 0 deletions src/main/java/org/tools4j/tabular/javafx/Main.java
@@ -1,6 +1,7 @@
package org.tools4j.tabular.javafx;

import com.airhacks.afterburner.injection.Injector;
import com.tulskiy.keymaster.common.Provider;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
Expand Down Expand Up @@ -65,5 +66,13 @@ public void start(Stage primaryStage) throws Exception {
});

ResizeHelper.addResizeListener(primaryStage);

Runtime.getRuntime().addShutdownHook(new Thread(() -> {
LOG.info("Shutting down jkeymaster hotkey provider.");
final Provider provider = Provider.getCurrentProvider(false);
provider.reset();
provider.stop();
LOG.info("Completed shutdown of jkeymaster hotkey provider.");
}));
}
}

0 comments on commit 09e90ea

Please sign in to comment.