Java System Tray Question.

Mark H. Nichols ubuntu at zanshin.net
Thu Oct 29 20:15:50 UTC 2009


Mike,

On Oct 29, 2009, at 12:52 PM, Mike A wrote:

> Hi
>
> I am running Ubuntu 9.04 and Java 1.6.0_0.  I tried to run a Java app
> that uses the System Tray (Notification bar) on Gnome. It failed. I
> wrote the following simple test.
>
> ----------------------------
> package myapp;
> import java.awt.*;
>
> public class Main {
>
>    public static void main(String[] args) {
>        if (SystemTray.isSupported()) {
>            System.out.println("It is supported!");
>        } else {
>            System.out.println("It is not supported!");
>        }
>    }
> }
>
> -----------------------------------
> It returned "It is not supported!"
> Anybody know what is wrong?

I don't know what is wrong. But you might look at this and see if it  
helps, or points you in the right direction: http://weblogs.java.net/blog/alexfromsun/archive/2008/02/jtrayicon_updat.html

Mark




More information about the ubuntu-users mailing list