Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Text on the Desktop  RSS feed

Sameera Abeysinghe
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I want to print some text on the desktop. How can I do this?

Let�s say I have an application that act as a notepad where u can put small notes. I want this note to be displayed on the desktop all the time. I think about doing this by
Class MyClass extends JWindow{
In side I have a text box, text area and a button. I enter text in the text box and click the button the text get printed on the text area.
I get a image of the desktop and print it on the jwindow and make the textarea, scrollpane and txet area setOpeacity(false) making them see-through. So now the user see is some buttons and some text only and the text also it sees like actually printed on the desk top. Since I use jwindow no close, resize and minimize buttons. But if I press windows+D keys my application gets minimized

How can I stop this?
And if there is a way to print the text right on the desktop it will be more useful

Thanks A lot
[ October 20, 2005: Message edited by: Sameera Abeysinghe ]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!