Proper tray icon iconify/bring to front behavior

Hi, I have a small but annoying problem with JDIC tray icons and JFrame. Maybe there's some really simple solution for this but I can't see it.
My app has one JFrame and a TrayIcon for it. Currently, a click to tray icon iconifies the frame when it's visible, and a click to tray deiconifies the frame when it's iconified. Simple enough, but my problem comes when I try to make the behavior a little more user-friendly: when the frame is visible, a click to to tray should bring it to the front IF it's not the topmost window - and iconify only when it's the topmost window.
The problem is, that when I click the tray icon - the JFrame loses it's focus and my code just always brings the frame on top.
Here's my code (Workbench contains a JFrame):
tray.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent e) {
                    Workbench workbench = app.getWorkbench();
                    if (workbench.isIconified()) {
                         if (!workbench.isVisible()) {
                              workbench.setVisible(true);
                         workbench.deiconify();
                         workbench.toFront();
                    } else {
// here's the problem
                         if (workbench.isFocused()) {
                              workbench.iconify();
                         } else {
                              workbench.toFront();
          });I thought about somekind of timer hack, that would check the time since the frame lost focus and compare it to current time when I press the tray icon, but that's an ugly solution - and some users might hold the button down longer than others.
Another would be to ask the topmost OS window with JNI (afaik. there is no such method in Java?)
btw. I just tried how mIRC does this, and it seems to get stuck to the "toFront()-state" too, when I set some another window to an "always-on-top"-mode. So I guess it's not the most ideal solution to ask the OS for the topmost window - but that would still do it for me.
Anyone have other ideas ?
Message was edited by:
finalfrontier

I am very interested in implementing just such a thing with my Java application. I am in the starting phases of this project and ran across your post in my search for info.
How much do you already have implemented? I.E., can you display the icon but are just having trouble catching the events for when the icon is clicked? Or do you not even have the ability to display the icon yet? I have found the Windows documentation on the MSDN site for the shell function Shell_NotifyIcon(), which is what we want to use but I have not begun any attempts to use it yet.
If you (or anyone else) have any info or have had any success at all with this yet, I would be very interested in hearing how it works. I'll be happy to share any info I find, when/if I get that far.
Thanks,
j

Similar Messages

  • Clicking on Dock icon only brings most-recently-used window to front

    In Leopard, clicking on the iChat Dock icon would bring all iChat windows (contact lists, chats, etc.) in front of other open applications, and give focus to the most recently used iChat window.
    After installing Snow Leopard, clicking on the iChat Dock icon only brings the most recently used iChat window to the front and gives it focus -- other iChat windows remain behind other application windows (if that is where they were before).
    Is this just me? My friend tells me that it still behaves like it did in Leopard on his computer. Any ideas?

    In the First Post your Specs said Snow Leopard, now they say Tiger
    Sorry, I didn't realize it wouldn't remember that setting for me -- I am running Snow Leopard.
    With Chax in Leopard/iChat 4 an extra item was added to the Window menu of iChat that says "Always On top"
    No, this is not what I was looking for. I have another machine with Leopard, and it does not have Chax -- iChat windows are not always in front, but they all come to the front when clicking on the Dock icon.
    I don't use it on the Buddy List as you can set it on Any iChat window.
    What do you mean, "you can set it on Any iChat window"? You mean the Chax setting, or something else?
    Are any Minimised to the DOCK ?
    No, none are minimized to the Dock.
    Chax does not work in iChat 5 and may be the cause of the issue.
    There is a beta version of Chax for iChat 5.
    I would delete Chax and then the com.apple.ichat.plist to remove any thing in it that refers to Chax and then relaunch iChat.
    I deleted Chax and every Chax and iChat plist, then restarted my computer. The problem did not go away -- still, only one window comes to the front when I click on the iChat Dock icon -- the others stay behind other windows.

  • Netcfg tray icon v3

    This is the release of what I consider a 'simple' tray icon for netcfg. The aim is a very simple front to start/stop netcfg/netlib profiles and just make it a little more convenient. Not a full clicky configure-everything GUI. 
    The icon and tooltip indicate the network connectivity, and networks can be selected for the menu. It's still a little rough around the edges, but already very useful.
    At present it can connect/disconnect profiles and run auto-wireless on an interface.
    Permissions
    As netcfg needs to be run as root, the tray icon needs to be configured to run /usr/bin/netcfg-tray-helper as root somehow.
    By default the tray icon uses gksudo, in the package 'gksu'. This brings in gnome deps - however this can be changed:
    cp -r /etc/xdg/netcfg-tray ~/.config/
    Then edit the root_cmd option to something without gnome deps. I set mine to sudo, then ran visudo and configured sudo to allow passwordless use of /usr/bin/netcfg-tray-helper.
    Notifications
    Notifications are somewhat configurable. Have a look at the default configuration, presently it supports:
    * no notifications
    * libnotify
    * dzen2
    For libnotify with no gnome deps, either use xfce4-notifyd or noteo  (written by an Archer! - http://aur.archlinux.org/packages.php?ID=15952)
    Download
    PKGBUILD: http://aur.archlinux.org/packages.php?ID=27601
    Source: ftp://ftp.archlinux.org/other/netcfg/tr … y-3.tar.gz
    Package: ftp://ftp.archlinux.org/other/netcfg/tr … pkg.tar.gz
    Depends on netcfg >=2.2.0b3 (testing) - The netcfg release in testing is pretty stable,  and will be moved to [core] in the near future with some minor changes.
    Feature Requests
    Keep in mind the aim is a very simple front to start/stop netcfg/netlib profiles and just make it a little more convenient. Not to become a full clicky configure-all GUI. 
    * Creating new profiles - Next feature to add. It'll be basic, not a full GUI for every option, probably just a simple text box/editor.
    * Scanning for available wireless networks - Will be optional. When I find a _clean_ way that does not introduce new deps, and does not involve parsing iwlist scan. I'm thinking a very short C app that uses the standard wireless extensions to get a parsable list of available networks, though I havn't used C for years.
    * Link quality - Maybe. Definitely optional, but like scanning, I need to find a good way to do it.
    Last edited by iphitus (2009-06-26 14:50:37)

    uploaded v3, again more small fixes.
    - picking a new profile on an active interface now disconnects the existing profile (thanks eldragon)
    - tooltip gives more useful information
    - factored out another couple of functions to netcfg.py
    PKGBUILD: http://aur.archlinux.org/packages.php?ID=27601
    Source: ftp://ftp.archlinux.org/other/netcfg/tr … y-3.tar.gz
    Package: ftp://ftp.archlinux.org/other/netcfg/tr … pkg.tar.gz
    ilembitov: ftp://ftp.archlinux.org/other/netcfg/tr … g-tray.png - The icon does not have a black background, that's just the intel drivers or import not taking a proper screenshot. If you've been to that cafe before and made a profile already, then yes, just select the profile in the menu. If you've never been there, you'll need to create the profile, then you can connect. Oh, and it'll get a wiki entry/webpage, and all that soon.
    Last edited by iphitus (2009-06-26 14:46:44)

  • Xfce panel and Pidgin buddy list maximizing on tray icon click

    Curious if anyone else has seen this behavior in Xfce with the system tray in the xfce panel:
    1.) Start pidgin unmaximized.
    2.) Click tray icon to iconify.
    3.) Click tray icon to restore buddy list: original dimensions retained.
    4.) Click tray icon to iconify.
    5.) Click tray icon to restore buddy list: maximized.
    Trying to figure it out.  There is already a bug filed in the arch bugzilla here : http://bugzilla.xfce.org/show_bug.cgi?id=3969
    Last edited by ecoffey (2008-06-28 18:13:29)

    I have none of the above problems but i may hint about using a new user (or backup your configs and start with a clean session) to see if it still happens. Since the problem came with the switch maybe the problem is there.

  • Sometimes Tray Icon not loaded correctly

    I am trying to make my (html/ajax) website available as a desktop application, (with little enhancements like notifications in the background etc.)  without writing any extra code. Everything works fine except the tray icon. Sometimes the tray icon is not loading correctly.
    Following is the structure of my sample air application.
    1. An html page(page1.html) i am using as my inital window.
    It creates an invisible html window and loads a new page (page2.html) as below.
            var options = new air.NativeWindowInitOptions();
            options.systemChrome = "standard";
            var windowBounds = new air.Rectangle(200,250,300,400);
            newHTMLLoader = air.HTMLLoader.createRootWindow(false, options, false, windowBounds);
            newHTMLLoader.window.mainAppWindow = window;
            newHTMLLoader.load(new air.URLRequest("page2.html"));
    and later redirecting to the website.
    2. I am using this invisible html window to control the application behavior (like sending ajax requests in the background, monitoring network, checking for updates etc.)
    page2.html contains code to load the tray icon for the application.
    Here is javascript the code in page2.html
    function BgWindow(){
            this.init = function(){
                this.loadTrayIcon();
            var iconLoadComplete = function(event){
                air.NativeApplication.nativeApplication.icon.bitmaps = [event.target.content.bitmapData];
            this.loadTrayIcon = function() {
                air.NativeApplication.nativeApplication.autoExit = true;
                var iconLoad = new air.Loader();
                if (air.NativeApplication.supportsSystemTrayIcon) {
                    iconLoad.contentLoaderInfo.addEventListener(air.Event.COMPLETE,iconLoadComplete);
                    iconLoad.load(new air.URLRequest("lmt16.png"));
        window.onload = function(){
            bgWindow = new BgWindow();
            bgWindow.init();       
    But the problem here is, sometimes the icon is loaded correctly but sometimes its not loaded.
    What am I missing here ?
    Any help is appreciated.
    I am attaching the complete application if somebody needs to analyze it.

    Sorry. Your attachment didn't come through. It triggered an error message about a "malformed container violation." Please try to rezip it and try it again.

  • [SOLVED] on last reboot, two wicd-clients running + two tray icons?

    Hi,
    I've been using wicd forever and for the first time, I had two tray icons showing this morning. I used to use xfce but switched to openbox about a month ago and have been using an autostart.sh like so:
    $ cat .config/openbox/autostart.sh |tail
    #bg
    eval `cat ~/.fehbg` &
    #post-start operations
    (tint2) &
    (conky -c /etc/conky/conky.conf) &
    (conky -c /etc/conky/conky-top.conf) &
    (wicd-client) &
    This has been working fine, at least as far as I knew. Suddenly this morning when I started up X, I had two wireless icons in my tray. I found that two wicd-clients were running:
    $ ps ax |grep wicd
    3492 ? S 0:00 /usr/bin/python2 -O /usr/share/wicd/daemon/wicd-daemon.py
    3500 ? S 0:00 /usr/bin/python2 -O /usr/share/wicd/daemon/monitor.py
    3573 tty1 S 0:00 /usr/bin/python2 -O /usr/share/wicd/gtk/wicd-client.py
    3578 tty1 S 0:00 /usr/bin/python2 -O /usr/share/wicd/gtk/wicd-client.py
    3641 ? Ss 0:00 wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/001b5311e850 -D wext
    This has never happened and I'm not sure why it would start all of the sudden like this. If I remove it from ~/.config/openbox/autostart.sh, I only get one wicd-client. If I put it back, I get two. But I never used to get two even when it was in autostart.sh before (like as of any time before this morning), which is why this is so puzzling.
    I thought it might have been an upgrade, but I just reinstalled Arch completely on Saturday to do encryption and pacman.log shows that this is the only version of wicd that's been installed.
    I wondered if having wicd in /etc/rc.conf daemons was enough to start the client upon startx, but the Arch wiki on wicd implies that you should have wicd-client in autostart.sh or equivalent.
    Can anyone assist in diagnosing the problem? I guess I'd be looking for:
    1) validation that wicd in DAEMONS of /etc/rc.conf is sufficient to start the client
    2) some way to find out where both wicd-clients are being started from (if that's even possible); for example, autostart.sh-started apps might potentially be tied to my username, whereas if something's being started from the system side, perhaps the process is owned by root and we could reveal that somehow
    3) any other suggestions or comments
    Thanks.
    Last edited by jwhendy (2011-03-10 03:00:56)

    @skunktrader: Whoops... but won't that be redundant? I already know where one instance was coming from: autostart.sh. I want to know why the other one is starting, since no one seemed to think that wicd automatically launched wicd-client. Anyway, several reboots later, here's the full scoop:
    | wicd in /etc/rc.conf deamons: no
    | wicd-client in ~/.config/openbox/autostart.sh: no
    `---
    Note: In previous reboots, I get asked by gksu to allow wicd to access my network cards. This past time, I got a message from gksu saying that wicd had been granted access to my network cards.
    | before starting openbox (nothing):
    `---
    $ ps ax -o user,pid,ppid,command |grep wicd
    | after starting openbox:
    `---
    $ ps ax -o user,pid,ppid,command |grep wicd
    jwhendy 3569 1 /usr/bin/python2 -O /usr/share/wicd/gtk/wicd-client.py
    root 3617 1 /usr/bin/python2 -O /usr/share/wicd/daemon/wicd-daemon.py
    root 3619 3617 /usr/bin/python2 -O /usr/share/wicd/daemon/monitor.py
    root 3669 1 wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/001b5311e850 -D wext
    =====================
    | wicd in /etc/rc.conf deamons: yes
    | wicd-client in ~/.config/openbox/autostart.sh: no
    `---
    | before starting openbox:
    `---
    $ ps ax -o user,pid,ppid,command|grep wicd
    root 3445 1 /usr/bin/python2 -O /usr/share/wicd/daemon/wicd-daemon.py
    root 3447 3445 /usr/bin/python2 -O /usr/share/wicd/daemon/monitor.py
    root 3566 1 wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/001b5311e850 -D wext
    | after starting openbox:
    `---
    $ ps ax -o user,pid,ppid,command|grep wicd
    root 3445 1 /usr/bin/python2 -O /usr/share/wicd/daemon/wicd-daemon.py
    root 3447 3445 /usr/bin/python2 -O /usr/share/wicd/daemon/monitor.py
    root 3566 1 wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/001b5311e850 -D wext
    jwhendy 3666 1 /usr/bin/python2 -O /usr/share/wicd/gtk/wicd-client.py
    =====================
    | wicd in /etc/rc.conf deamons: yes
    | wicd-client in ~/.config/openbox/autostart.sh: yes
    `---
    | before starting openbox:
    `---
    $ ps ax -o user,pid,ppid,command|grep wicd
    root 3420 1 /usr/bin/python2 -O /usr/share/wicd/daemon/wicd-daemon.py
    root 3422 3420 /usr/bin/python2 -O /usr/share/wicd/daemon/monitor.py
    root 3543 1 wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/001b5311e850 -D wext
    | after starting openbox:
    `---
    $ ps ax -o user,pid,ppid,command|grep wicd
    root 3420 1 /usr/bin/python2 -O /usr/share/wicd/daemon/wicd-daemon.py
    root 3422 3420 /usr/bin/python2 -O /usr/share/wicd/daemon/monitor.py
    root 3543 1 wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/001b5311e850 -D wext
    jwhendy 3657 1 /usr/bin/python2 -O /usr/share/wicd/gtk/wicd-client.py
    jwhendy 3662 3641 /usr/bin/python2 -O /usr/share/wicd/gtk/wicd-client.py
    =====================
    So, this is why I said that the test is a bit redundant. The real question still remains: why with no wicd in rc.conf and it commented in autostart.sh is wicd related stuff starting at all? I already know one instance is definitely occurring from autostart.sh, because when I commented it out, I only had one left. But if autostart.sh is supposed to be mandatory, where is the other one coming from? More so... without it in the daemons line, the behavior with gksu indicates that something, somewhere is trying to get wicd up and running. That is what I really don't get at all.

  • How do I install a patch? (xfce4-power-manager tray icon patch)

    Sorry if this is a stupid question or if the answer can be found elsewhere, but I googled and searched the forums and couldn't find any answers.
    xfce4-power-manager had for the longest time had a tray icon showing battery status, and they recently decided to remove it in favor of a xfce-panel only icon. Bringing it back was requested on bugzilla and a patch was released.
    But I really have no idea what to do with it. Can someone shine some light on this for me?
    Last edited by ralph_13 (2015-03-13 00:17:15)

    Putting prepare before the other functions didn't seem to work. Below is the full makepkg log:
    [ralph@AnarchBox xfce4-power-manager-p]$ makepkg
    ==> Making package: xfce4-power-manager 1.4.3-1 (Mon Mar 16 15:36:12 BRT 2015)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
    -> Downloading xfce4-power-manager-1.4.3.tar.bz2...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 368 100 368 0 0 559 0 --:--:-- --:--:-- --:--:-- 560
    100 366 100 366 0 0 361 0 0:00:01 0:00:01 --:--:-- 98000
    100 1112k 100 1112k 0 0 31763 0 0:00:35 0:00:35 --:--:-- 23720
    -> Downloading attachment.cgi?id=5979...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 24765 100 24765 0 0 14505 0 0:00:01 0:00:01 --:--:-- 14499
    ==> Validating source files with sha256sums...
    xfce4-power-manager-1.4.3.tar.bz2 ... Passed
    attachment.cgi?id=5979 ... Passed
    ==> Extracting sources...
    -> Extracting xfce4-power-manager-1.4.3.tar.bz2 with bsdtar
    ==> Starting prepare()...
    patching file data/interfaces/xfpm-settings.ui
    patching file panel-plugins/power-manager-plugin/power-manager-button.c
    patching file panel-plugins/power-manager-plugin/power-manager-button.h
    patching file settings/xfpm-settings.c
    patching file src/Makefile.am
    patching file src/xfpm-manager.c
    Hunk #6 succeeded at 707 (offset 3 lines).
    Hunk #7 succeeded at 928 (offset 3 lines).
    patching file src/xfpm-power.c
    ==> Starting build()...
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether UID '1000' is supported by ustar format... yes
    checking whether GID '1000' is supported by ustar format... yes
    checking how to create a ustar tar archive... gnutar
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking whether make supports nested variables... (cached) yes
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking dependency style of gcc... gcc3
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking whether gcc understands -c and -o together... (cached) yes
    checking dependency style of gcc... (cached) gcc3
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking how to print strings... printf
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether NLS is requested... yes
    checking for intltool >= 0.31... 0.50.2 found
    checking for intltool-update... /usr/bin/intltool-update
    checking for intltool-merge... /usr/bin/intltool-merge
    checking for intltool-extract... /usr/bin/intltool-extract
    checking for xgettext... /usr/bin/xgettext
    checking for msgmerge... /usr/bin/msgmerge
    checking for msgfmt... /usr/bin/msgfmt
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for perl... /usr/bin/perl
    checking for perl >= 5.8.1... 5.20.2
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for sysroot... no
    checking for mt... no
    checking if : is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking for ANSI C header files... (cached) yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking for sys/types.h... (cached) yes
    checking for memory.h... (cached) yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking for sys/stat.h... (cached) yes
    checking sys/user.h usability... yes
    checking sys/user.h presence... yes
    checking for sys/user.h... yes
    checking sys/wait.h usability... yes
    checking sys/wait.h presence... yes
    checking for sys/wait.h... yes
    checking time.h usability... yes
    checking time.h presence... yes
    checking for time.h... yes
    checking math.h usability... yes
    checking math.h presence... yes
    checking for math.h... yes
    checking for unistd.h... (cached) yes
    checking sys/resource.h usability... yes
    checking sys/resource.h presence... yes
    checking for sys/resource.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking sys/sysctl.h usability... yes
    checking sys/sysctl.h presence... yes
    checking for sys/sysctl.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking procfs.h usability... no
    checking procfs.h presence... no
    checking for procfs.h... no
    checking for getpwuid... yes
    checking for setsid... yes
    checking for sigaction... yes
    checking for round in -lm... yes
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking for LC_MESSAGES... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking for ngettext in libc... yes
    checking for dgettext in libc... yes
    checking for bind_textdomain_codeset... yes
    checking for msgfmt... (cached) /usr/bin/msgfmt
    checking for dcgettext... yes
    checking if msgfmt accepts -c... yes
    checking for gmsgfmt... (cached) /usr/bin/msgfmt
    checking for xgettext... (cached) /usr/bin/xgettext
    checking for catalogs to be installed... ar ast bg ca cs da de el en_AU en_GB es et eu fi fr gl he hr hu id is it ja kk ko lt ms nb nl nn oc pa pl pt_BR pt ro ru si sk sl sr sv te th tr ug uk ur_PK ur vi zh_CN zh_HK zh_TW
    checking for bind_textdomain_codeset... (cached) yes
    checking for locales directory... ${datarootdir}/locale
    checking for additional xgettext flags... --keyword=Q_ --from-code=UTF-8
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for gtk+-2.0 >= 2.24.0... 2.24.27
    checking GTK_CFLAGS... -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz
    checking GTK_LIBS... -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for glib-2.0 >= 2.30.0... 2.42.2
    checking GLIB_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    checking GLIB_LIBS... -lglib-2.0
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for gobject-2.0 >= 2.30.0... 2.42.2
    checking GOBJECT_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    checking GOBJECT_LIBS... -lgobject-2.0 -lglib-2.0
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for gthread-2.0 >= 2.30.0... 2.42.2
    checking GTHREAD_CFLAGS... -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    checking GTHREAD_LIBS... -lgthread-2.0 -pthread -lglib-2.0
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for gmodule-2.0 >= 2.30.0... 2.42.2
    checking GMODULE_CFLAGS... -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    checking GMODULE_LIBS... -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for dbus-1 >= 1.1... 1.8.16
    checking DBUS_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
    checking DBUS_LIBS... -ldbus-1
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for dbus-glib-1 >= 0.84... 0.102
    checking DBUS_GLIB_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    checking DBUS_GLIB_LIBS... -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for libxfconf-0 >= 4.10.0... 4.12.0
    checking XFCONF_CFLAGS... -I/usr/include/xfce4/xfconf-0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    checking XFCONF_LIBS... -lxfconf-0 -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for libxfce4ui-1 >= 4.10.0... 4.12.0
    checking LIBXFCE4UI_CFLAGS... -pthread -I/usr/include/xfce4/libxfce4ui-1 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    checking LIBXFCE4UI_LIBS... -lxfce4ui-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lfontconfig -lfreetype -lxfce4util -lglib-2.0
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for libxfce4util-1.0 >= 4.10.0... 4.12.1
    checking LIBXFCE4UTIL_CFLAGS... -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    checking LIBXFCE4UTIL_LIBS... -lxfce4util -lglib-2.0
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for libnotify >= 0.4.1... 0.7.6
    checking LIBNOTIFY_CFLAGS... -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    checking LIBNOTIFY_LIBS... -lnotify -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for upower-glib >= 0.9.7... 0.99.2
    checking UPOWER_CFLAGS... -pthread -I/usr/include/libupower-glib -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    checking UPOWER_LIBS... -lupower-glib -lgobject-2.0 -lglib-2.0
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for xrandr >= 1.2.0... 1.4.2
    checking XRANDR_CFLAGS...
    checking XRANDR_LIBS... -lXrandr
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for x11 >= 1.0.0... 1.6.2
    checking X11_CFLAGS...
    checking X11_LIBS... -lX11
    checking whether to build with polkit support... yes
    checking for DPMSQueryExtension in -lXext... yes
    checking whether XF86XK_Suspend is declared... yes
    checking whether XF86XK_Hibernate is declared... yes
    checking whether to build with network manager support.... no
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for libxfce4panel-1.0 >= 4.10.0... 4.12.0
    checking LIBXFCE4PANEL_CFLAGS... -pthread -I/usr/include/xfce4/libxfce4panel-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    checking LIBXFCE4PANEL_LIBS... -lxfce4panel-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lfontconfig -lfreetype -Wl,--export-dynamic -lgmodule-2.0 -pthread -lxfce4util -lglib-2.0
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for lxpanel >= 0.7.0... 0.8.0
    checking LXDEPANEL_NEW_CFLAGS... -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    checking LXDEPANEL_NEW_LIBS... -L/usr/lib/lxpanel -llxpanel -lfm -lgthread-2.0 -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for lxpanel >= 0.5.6... 0.8.0
    checking LXDEPANEL_CFLAGS... -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    checking LXDEPANEL_LIBS... -L/usr/lib/lxpanel -llxpanel -lfm -lgthread-2.0 -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0
    checking whether to build with debugging support... no
    checking PLATFORM_CPPFLAGS...
    checking PLATFORM_CFLAGS...
    checking PLATFORM_LDFLAGS...
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating libdbus/Makefile
    config.status: creating common/Makefile
    config.status: creating src/Makefile
    config.status: creating settings/Makefile
    config.status: creating panel-plugins/Makefile
    config.status: creating panel-plugins/power-manager-plugin/Makefile
    config.status: creating panel-plugins/power-manager-plugin/lxde-0.7/Makefile
    config.status: creating panel-plugins/power-manager-plugin/lxde/Makefile
    config.status: creating panel-plugins/power-manager-plugin/xfce/Makefile
    config.status: creating data/Makefile
    config.status: creating data/icons/Makefile
    config.status: creating data/icons/16x16/Makefile
    config.status: creating data/icons/22x22/Makefile
    config.status: creating data/icons/24x24/Makefile
    config.status: creating data/icons/32x32/Makefile
    config.status: creating data/icons/48x48/Makefile
    config.status: creating data/icons/scalable/Makefile
    config.status: creating data/interfaces/Makefile
    config.status: creating data/appdata/Makefile
    config.status: creating po/Makefile.in
    config.status: creating config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands
    config.status: executing default-1 commands
    config.status: executing po/stamp-it commands
    prefix: /usr
    xdg autostart: /etc/xdg/autostart
    POLKIT: yes
    Network manager: no
    Build panel plugins: yes
    Xfce plugins: yes
    LXDE plugins: yes
    Backend: linux
    Debug: no
    Configuration finished, type make to compile
    make all-recursive
    make[1]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3'
    Making all in data
    make[2]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data'
    Making all in icons
    make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons'
    Making all in 16x16
    make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/16x16'
    make[4]: Nothing to be done for 'all'.
    make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/16x16'
    Making all in 22x22
    make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/22x22'
    make[4]: Nothing to be done for 'all'.
    make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/22x22'
    Making all in 24x24
    make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/24x24'
    make[4]: Nothing to be done for 'all'.
    make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/24x24'
    Making all in 32x32
    make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/32x32'
    make[4]: Nothing to be done for 'all'.
    make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/32x32'
    Making all in 48x48
    make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/48x48'
    make[4]: Nothing to be done for 'all'.
    make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/48x48'
    Making all in scalable
    make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/scalable'
    make[4]: Nothing to be done for 'all'.
    make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons/scalable'
    make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons'
    make[4]: Nothing to be done for 'all-am'.
    make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons'
    make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/icons'
    Making all in interfaces
    make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/interfaces'
    make all-am
    make[4]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/interfaces'
    make[4]: Nothing to be done for 'all-am'.
    make[4]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/interfaces'
    make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/interfaces'
    Making all in appdata
    make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/appdata'
    ITMRG xfce4-power-manager.appdata.xml
    make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data/appdata'
    make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data'
    make[3]: Nothing to be done for 'all-am'.
    make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data'
    make[2]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/data'
    Making all in libdbus
    make[2]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/libdbus'
    make all-am
    make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/libdbus'
    CC libxfpmdbus_la-xfpm-dbus.lo
    CC libxfpmdbus_la-xfpm-dbus-monitor.lo
    CC libxfpmdbus_la-xfpm-unique.lo
    CC libxfpmdbus_la-xfpm-dbus-marshal.lo
    CCLD libxfpmdbus.la
    make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/libdbus'
    make[2]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/libdbus'
    Making all in common
    make[2]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/common'
    make all-am
    make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/common'
    CC libxfpmcommon_la-xfpm-enum-types.lo
    CC libxfpmcommon_la-xfpm-common.lo
    CC libxfpmcommon_la-xfpm-brightness.lo
    CC libxfpmcommon_la-xfpm-debug.lo
    CC libxfpmcommon_la-xfpm-power-common.lo
    CCLD libxfpmcommon.la
    make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/common'
    make[2]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/common'
    Making all in src
    make[2]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/src'
    make all-am
    make[3]: Entering directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/src'
    CC xfce4_power_manager-xfpm-marshal.o
    CC xfce4_power_manager-xfpm-main.o
    CC xfce4_power_manager-xfpm-manager.o
    xfpm-manager.c: In function ‘xfpm_manager_show_tray_icon’:
    xfpm-manager.c:751:33: warning: assignment makes pointer from integer without a cast
    manager->priv->power_button = power_manager_button_new ();
    ^
    CC xfce4_power_manager-xfpm-power.o
    CC xfce4_power_manager-xfpm-battery.o
    CC xfce4_power_manager-xfpm-xfconf.o
    CC xfce4_power_manager-xfpm-console-kit.o
    CC xfce4_power_manager-xfpm-systemd.o
    CC xfce4_power_manager-egg-idletime.o
    CC xfce4_power_manager-xfpm-backlight.o
    CC xfce4_power_manager-xfpm-kbd-backlight.o
    CC xfce4_power_manager-xfpm-dpms.o
    CC xfce4_power_manager-xfpm-button.o
    CC xfce4_power_manager-xfpm-network-manager.o
    CC xfce4_power_manager-xfpm-inhibit.o
    CC xfce4_power_manager-xfpm-notify.o
    CC xfce4_power_manager-xfpm-polkit.o
    CC xfce4_power_manager-xfpm-errors.o
    CC xfce4_power_manager-xfpm-suspend.o
    CCLD xfce4-power-manager
    xfce4_power_manager-xfpm-manager.o: In function `xfpm_manager_tray_update_icon':
    xfpm-manager.c:(.text+0x11c9): undefined reference to `power_manager_button_get_type'
    xfpm-manager.c:(.text+0x1224): undefined reference to `power_manager_button_get_icon_name'
    xfce4_power_manager-xfpm-manager.o: In function `xfpm_manager_tray_update_tooltip':
    xfpm-manager.c:(.text+0x128d): undefined reference to `power_manager_button_get_type'
    xfpm-manager.c:(.text+0x1324): undefined reference to `power_manager_button_get_tooltip'
    xfpm-manager.c:(.text+0x1336): undefined reference to `power_manager_button_get_tooltip'
    xfce4_power_manager-xfpm-manager.o: In function `xfpm_manager_set_property':
    xfpm-manager.c:(.text+0x14e0): undefined reference to `power_manager_button_new'
    xfpm-manager.c:(.text+0x150e): undefined reference to `power_manager_button_show'
    xfce4_power_manager-xfpm-manager.o: In function `xfpm_manager_show_tray_menu':
    xfpm-manager.c:(.text+0xa9): undefined reference to `power_manager_button_show_menu'
    collect2: error: ld returned 1 exit status
    Makefile:742: recipe for target 'xfce4-power-manager' failed
    make[3]: *** [xfce4-power-manager] Error 1
    make[3]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/src'
    Makefile:604: recipe for target 'all' failed
    make[2]: *** [all] Error 2
    make[2]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3/src'
    Makefile:510: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/ralph/.abs/xfce4-power-manager-p/src/xfce4-power-manager-1.4.3'
    Makefile:441: recipe for target 'all' failed
    make: *** [all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...

  • X,Y position of your system tray icon

    Hi
    In my app i have a functionality by which i can minimize my desktop app to systray..On minimizing my app, an icon is created in the system tray..now is this possible for me to get the x,y position of that icon located in the system tray..i want to display notification pop up above it..with a pointer pointing the system tray icon.
    Thanks

    Just try this...
    Once you get proper character's index, use the following code,
    myTxtFld.getCharBoundaries(index); // this will return a rectangle.
    myTxtFld.getCharBoundaries(index).x; // ===========> will provide x coordinate and
    myTxtFld.getCharBoundaries(index).y; // ===========> will provide y coordinate.
    Good luck !!

  • JPopup and System Tray icon

    Hi there,
    I have a problem with my appl. May ý ask you?
    I made a jpopup for using both menu in window and in system tray icon.
    I used
    trayIcon.addMouseListener(new MouseAdapter() {
            public void mouseReleased(MouseEvent e) {
                if (e.isPopupTrigger()) {
                    jpopup.setLocation(e.getX(), e.getY());
                    jpopup.setInvoker(jpopup);
                    jpopup.setVisible(true);
            });showing jpopup on trayicon.
    But it is not closing itself. To close it, i have to push any menuitem on it.
    Normally popup must close itself if we click mouse on anywhere of screen. But mine is not closing? How can fix this?

    regerybets wrote:
    I red but couldnt find any solution.There is no solution. To get the behavior you desire you need to use trayicon.setPopupMenu(...) . But that method only takes a java.awt.PopupMenu , not a javax.swing.JPopupMenu . The code you posted is a workaround for using a JPopupMenu on a tray icon. Consequently, the workaround has a few limitations that you wont be able to fix.
    EDIT
    Well I came up with a workaround for the workaround. I was wondering what to call the new class when I thought "JTrayIcon" sounds ok. Curious, I googled for the name and eventually came across this [blog entry|http://weblogs.java.net/blog/alexfromsun/archive/2008/02/jtrayicon_updat.html] which references [this class|https://swinghelper.dev.java.net/source/browse/swinghelper/src/java/org/jdesktop/swinghelper/tray/JXTrayIcon.java?view=markup] called JXTrayIcon.
    Turns out this class uses the same solution I came up with. An zero-sized-focused dialog is used to detect when to close the popup menu. When the dialog looses focus (by clicking on the desktop for example), the java popup mechanism automatically closes the JPopupMenu. So instead of posting my solution (which is exactly the same) I'll simply reference you to JXTrayIcon and the blog.

  • Google-chrome no tray icon

    Hi Friends, Google chrome shows no icon in the system tray even if the option of continue running in the background is checked. In windows OS, it displays an icon in the systray. But in linux it does not. Please how can i bring back this functionality. Many thanks. (Recently, I found that in previous versions, it used to display the sys tray icon , but now it does not).Many thanks.

    Same here. It used to display the icon, but I re-installed Arch, and it no longer has an icon.
    Last edited by AlecB (2013-05-02 23:23:11)

  • Accessing the system tray icon

    I've been programming a desktop application with ruby/tk. Using the win32api gem, I've managed to hide and set my program icon to work in the system tray. The icon is displayed succesfully and the texttip works etc.
    Now I'd like for the app window to maximize when the tray icon is clicked, or show a menu, but I have no idea how to reference this icon. I used the win32api gem to a) minimize (or hide) the current window via ShowWindow() and b) to create an icon in the
    system tray with Shell_NotifyIconA().
    Now I want to access the window again via the icon. How can this be achieved?

    Hello simon,
    According to your description, it seems that this issue seems to be related with Rube development with win32api, for this, I think the Ruby forum is proper for it:
    https://www.ruby-forum.com/forum
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Bootcamp tray icon missing win7 64bit

    I am using mavericks 10.9.2 with bootcamp and win7 ultimate 64bit, after windows update the driver, the system tray icon for bootcamp is not there anymore.
    I just go to control panel and click bootcamp to choose osx again.
    but how can i fix the tray icon again in taskbar.
    thanks.

    The hatter wrote:
    I don't always know ahead of time that I am going to WIPE and reinstall from scratch so that isn't always an option... too draconian for me to have to do an online de-activate before activating.
    Disclaimer: I work for the people that make MacDrive.
    MacDrive is designed to reactivate on the same computer provided there are not a significant number of hardware and OS changes. It's very comparable to Windows XP/Vista...if you're reinstalling the same OS on the same system, and you don't want to be bothered with uninstalling first, then the software will reactivate without any help from our support staff, or any preventative action on your end (e.g. uninstalling).
    In the event you are constantly changing operating systems (and/or hardware), and you don't want to be bothered by the self-help option of uninstalling before you wipe the computer, then you can always turn to our extremely effective and responsive support staff. We guarantee a same day response during the week (average response time is less than an hour). That level of response time ensures that even if you buy a brand new computer on the weekend...you can use the software in trial mode until we're able to assist you during the week.
    I genuinely appreciate the criticism...I just want to ensure that everyone reading this thread gets the facts.
    To the original poster, I'm very appreciative of you bringing this up. What version of the Boot Camp drivers do you have installed on your MacBook Pro? I've been trying to replicate what you're describing on my MacBook Pro (admittedly, an older model) without success thus far.

  • Can't mount Time Capsule on PC (white system tray icon no longer there)

    My new time capsule is working perfectly on my MacBookPro, however recently I tried to get it to work on my PC laptop. I easily got the wireless internet work on the PC, that's not a problem. I installed the airport utility on my PC and it was able to recognize it through the airport utility interface/configuring window where I could change settings, etc., just like I could on my Mac. There used to be (on my PC) this white icon in my system tray on the lower right of my screen. When I clicked on this I could type my password, as prompted, and mount to the time capsule, which I could now see in My Computer as a drive. I tested a few files by dragging them over into the drive, and it worked fine. Now, a week later the icon in the system tray has disappeared, and I can no longer see the time capsule on my PC in My Computer. I can still click on the airport utility icon in my programs and see/change settings in my time capsule from my PC, but cannot see nor access the drive from My Computer (or mount by clicking on this now missing icon). Anyone else know what I can do? Thanks in advance!

    I was just having this problem and figured out that the white system tray icon is the Airport Base Station Agent. It wasn't running for me for some reason, too, but I found it and started it back up again at C:\Program Files\AirPort\APAgent.exe.
    Here's an Apple Support article (it's a little old) I found that discusses drive mapping in windows with the Airport Base Station Agent: http://support.apple.com/kb/HT1331
    Hope this helps.

  • How do I get firefox 3.5 back? Firefox 4 can't find yahoo.mail URL. Using your suggestions has caused me to loose my system tray icons and printers from my computer altogether and my system restore will no longer work either.

    Firefox 4.0 cannot find the Yahoo mail URL. Working with the Verizon tech we were able to get Internet Explorer to finaly find the yahoo mail web site. But not luck with Firefox 4.0 .
    Since trying your suggestions to make firefox 4 find the Yahoo mail URL. I have noticed that all of my system tray icons except the Panda anti virus and volume control icons have disapeared. My system restore will not restore and printers are gone altogether. How do I get the old firefox and all i've lost back.
    Hector, [email protected]

    Still cannot fix it to get Yahoo e-mail. This what I get now from Ff3.5 now.
    Sorry, we can't find "http://us.mc1121.mail.yahoo.com/mc/welcome". Please check the spelling of the web address.
    From Ff4 it can't find the " URL proxy server" on it's server???
    Have tried most every solutions/suggestion I could find have my computer just keeps getting worse. Where do I find the 4 solutions you mention here to see if I have not already tried them? I don't see or know where to go to find these solutions??? Can anyone help me find the fix???
    E-mail add. [email protected]

  • I am running OS 10.6.8 and Safari 5.1.  Option-Command-Escape now brings up Front Row.  How can this be fixed?

    I am running OS 10.6.8 and Safari 5.1.  Option-Command-Escape now brings up Front Row.  How can this be fixed?
    Also, trying to copy portions of articles from Safari (5.1) to MS Word now results in the twirling ball. Any solutions?

    Try using the other Option (Alt) key. The reason I suggest that - the real command combo for Front Row is Command-Escape; yet yours was being activated when you pressed Command-Option-Escape. That would indicate that Finder was not responding to the inclusion of Option in the key combo. The simplest explanation for that would be that the Option key you are using is not working for some reason.
    One other 'simple' possibility - just to make sure (in case you are using a non-Apple keyboard), Option is the key adjacent to each Command key.

Maybe you are looking for

  • Apple TV not in Device List

    Help!!! I have done everything a zillion times. Somebody must know something!! Sandra

  • I want to learn three things

    Hi, I want to learn the following three things *1. Upgrading APEX v.3.0.1 to v3.2.0* v.3.0.1 has been installed on my team server. But I'm not able to upgrade this to v3.2.0 in spite of many docs and tips. I've saved v3.2.0 zip file in the server but

  • What are different possible ways to start a process?

    Wondering what are different possible ways in which I can trigger a process in Aqualogic BPM. I have worked on WLI & there with the use of channels & event generators I could able to trigger my process for almost any event, be it file system update,

  • Queries around Reader enabled plugins

    Hi, I'm in the process of developing a plugin for adobe reader and was wondering if someone could help me clear the following doubts before I go ahead: 1. I want to add a new menu item to the Adobe Reader interface and launch another application when

  • ICloud Outlook Add-In: Calendar,

    Outlook 2010 on Win 7 with iCloud. I am in the Calendar pane, select New Appointment, then click Invite Attendees. There is a line that says 'Click here to add a person'. When I click there and start to type there is no auto complete feature. Is ther