🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1110

Re: Java api and System tray icon

#1110
From: John McGrath TeamB
Date: Wed, 26 Jun 2002 00:09
31 lines
2088 bytes
On Tue, 25 Jun 2002 22:35:26 +0500, Gnusik wrote:

> According to the information I got, it's impossible to make 
> my java application iconified in the system tray (and more
> than that to have an additional menu when clicking there)
> using java api. One should use JNI to make it. Can you point
> me to an example with the source code? 

The JNI docs have some samples of using JNI:

   http://java.sun.com/j2se/1.4/docs/guide/jni/index.html

You should look to Microsoft sources for how to use the system tray.

> or is there any native java implementation of that (when I
> say "native" I don't mean JNI but the java api itself)?

No, there is no way to do this with the standard Java APIs.  The idea 
of a "system tray" is specific to the Windows operating systems, so you 
will not find any standard Java APIs for dealing with it.  You might 
find some third-party libraries that provide this functionality, 
although I do not know of any.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.1782d02bcd9e469598b747@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!64.152.100.70.MISMATCH!ps01-sjc1!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!out.nntp.be!propagator2-SanJose!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3d18aa21_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,3109f4b6ca82132a
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-06-25 17:21:24 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: Java api and System tray icon
Date: Tue, 25 Jun 2002 20:09:18 -0400
Message-ID: <MPG.1782d02bcd9e469598b747@newsgroups.borland.com>
References: <3d18aa21_1@dnews>
X-Newsreader: MicroPlanet Gravity v2.60
NNTP-Posting-Host: 209.92.40.60
X-Trace: dnews 1025050156 209.92.40.60 (25 Jun 2002 17:09:16 -0700)
Lines: 31
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!64.152.100.70.MISMATCH!ps01-sjc1!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!out.nntp.be!propagator2-SanJose!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews