aspose file tools*
The moose likes Beginning Java and the fly likes show temp and humidity in system tray? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "show temp and humidity in system tray?" Watch "show temp and humidity in system tray?" New topic
Author

show temp and humidity in system tray?

Crystal Bazil
Ranch Hand

Joined: Sep 28, 2004
Posts: 38
My coworker and I are researching the easiest way to accomplish this without having to install a runtime enviroment on the clientside.

He thinks he can do it with labview but will have to install a runtime in an installer. Is there anyway to do something like this in java?

I havent really worked with system anything in java so I am clueless - and it seems from the research I have quickly done this morning that I can minimize an app to system tray but only show an icon? Is there anyway to update a value in the sys tray?

The values are being stored in a database as we have to maintain a history with these values indefinetley. Any ideas or guidence would be super appreciated.
Adam Richards
Ranch Hand

Joined: Nov 03, 2005
Posts: 135
The "system tray" is unique to Windows, and thus can be manipulated only using the Windows API. Therefore, it is not a good candidate for a Java program; however, if you still want to do so, you'll need to write a Java Native Interface (JNI) call for that. Google for Java JNI.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8997
    
    9

There's a couple of third party libraries that have done the heavy lifting as far as the JNI is concerned. Have a look at trayicon or jtray.


[How To Ask Questions On JavaRanch]
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14435
    
  23

Originally posted by Crystal Bazil:
... without having to install a runtime enviroment on the clientside.

I don't know exactly what you're trying to run where, but to run Java programs on a computer, that computer must have a Java runtime environment (JRE) installed. You cannot run Java programs without a JRE, just like you can't drive a car without an engine.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: show temp and humidity in system tray?