forked from dorkbox/SystemTray
Cleaned up readmes
Updated readme Changed DelayTimer to use Runnable
This commit is contained in:
parent
6844fd0a44
commit
97ece8af31
67
README.md
67
README.md
@ -73,6 +73,8 @@ The test application is [on GitHub](https://github.com/dorkbox/SystemTray/blob/m
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
Note: This library does NOT use SWT for system-tray support, only for the purpose
|
Note: This library does NOT use SWT for system-tray support, only for the purpose
|
||||||
of lessening the jar dependencies. Changing it to be SWT-based is not
|
of lessening the jar dependencies. Changing it to be SWT-based is not
|
||||||
@ -122,4 +124,69 @@ ISSUES:
|
|||||||
See: https://askubuntu.com/questions/364594/has-the-appindicator-or-gtkmenu-api-changed-in-saucy
|
See: https://askubuntu.com/questions/364594/has-the-appindicator-or-gtkmenu-api-changed-in-saucy
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
<h4>We now release to maven!</h4>
|
||||||
|
|
||||||
|
There are two dependencies here because we did not want to bake-in a hard dependency into the POM file for the utilities library, which
|
||||||
|
are an extremely small subset of a much larger library; including only what is *necessary* for this particular project to function.
|
||||||
|
|
||||||
|
This project is **kept in sync** with the utilities library, so "jar hell" is not an issue. Please note that the util library (in it's entirety) is not added since there are **many** dependencies that are not *necessary* for this project. No reason to require a massive amount of dependencies for one or two classes/methods.
|
||||||
|
```
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.dorkbox</groupId>
|
||||||
|
<artifactId>SystemTray</artifactId>
|
||||||
|
<version>1.11</version>
|
||||||
|
</dependency>
|
||||||
|
```
|
||||||
|
|
||||||
|
Or if you don't want to use Maven, you can access the files directly here:
|
||||||
|
https://oss.sonatype.org/content/repositories/releases/com/dorkbox/SystemTray/
|
||||||
|
https://oss.sonatype.org/content/repositories/releases/com/dorkbox/SystemTray-Dorkbox-Util/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,10 +44,10 @@ class SystemTrayMenuPopup extends JPopupMenu {
|
|||||||
super();
|
super();
|
||||||
setFocusable(true);
|
setFocusable(true);
|
||||||
|
|
||||||
this.timer = new DelayTimer("PopupMenuHider", true, new DelayTimer.Callback() {
|
this.timer = new DelayTimer("PopupMenuHider", true, new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public
|
public
|
||||||
void execute() {
|
void run() {
|
||||||
SwingUtil.invokeLater(new Runnable() {
|
SwingUtil.invokeLater(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public
|
public
|
||||||
@ -78,8 +78,8 @@ class SystemTrayMenuPopup extends JPopupMenu {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Does not work correctly on linux. a window in the taskbar shows up.
|
// Does not work correctly on linux. a window in the taskbar still shows up
|
||||||
/* Initialize the hidden dialog as a headless, titleless dialog window */
|
// Initialize the hidden dialog as a headless, titleless dialog window
|
||||||
// this.hiddenDialog = new JDialog((Frame)null);
|
// this.hiddenDialog = new JDialog((Frame)null);
|
||||||
// this.hiddenDialog.setEnabled(false);
|
// this.hiddenDialog.setEnabled(false);
|
||||||
// this.hiddenDialog.setUndecorated(true);
|
// this.hiddenDialog.setUndecorated(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user