|
This is a quick and dirty library meant to replace Java's TrayIcon on Linux systems which have access to Gtk, allowing transparent backgrounds rather than the ugly gray one. It's far from perfect, may be extremely buggy when used with other native X11/Gtk libraries, and may cause unexpected jvm crashes. The API is far from perfect, and a lot of it was written over a year ago for the original Sleeksnap, only being updated a little bit to fix naming and conventions.
However, I believe it's somewhat stable, and if there's an issue let's try to fix it.
https://github.com/nikkiii/nativetray
How it works:
First, it'll try to load Gtk, if it fails, then it'll fall back to Java's TrayIcon. If it succeeds, it'll use JNA to access Gtk and wrap a Gtk StatusIcon and Menu (basic menu only, no sub menus), giving you the system L&F and the lovely transparent icon.
Why:
There has been an *ehem* "enhancement" since 2006 - http://bugs.java.com/bugdatabase/vie...bug_id=6453521, which needs to be fixed somehow, but until then there's no good way to do it.
Works perfect thanks
Index of /maven2/us/nikkii/nativetray/1.0/
And added installation instructions using my personal repository for now.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |