File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes timer : display reimnder in foreground Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "timer : display reimnder in foreground" Watch "timer : display reimnder in foreground" New topic

timer : display reimnder in foreground

liliana punkt

Joined: Dec 23, 2002
Posts: 16
I implemented a timer that remembers me what to do during the day. This application should not be seen (not focussed).
It works quite well, but the message is on the desktop. So if I work with any other application in the foreground, I see my reminder the first time, when I close my application. This could be much too late for the dates I had.
Could you please tell me, how to see the reminder in the foreground, although I'm working with other applications?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
You need to convince your operating system that it should be "always on top". Of course each OS has different ways of handling this . . .
So you will probably need to use some JNI to hook into a particular OS's way of doing this.

"JavaRanch, where the deer and the Certified play" - David O'Meara
liliana punkt

Joined: Dec 23, 2002
Posts: 16
with a little delay:
thanks a lot. I see that I loose the platform independence when doing this. I didn't work with jni by now.
I agree. Here's the link:
subject: timer : display reimnder in foreground
It's not a secret anymore!