Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

timer : display reimnder in foreground

 
liliana punkt
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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?
Thanks,
Liliana
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
liliana punkt
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
liliana
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic