File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

show temp and humidity in system tray?

 
Crystal Bazil
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 135
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic