Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can we write memory resident program

 
mutyalarao aripaka
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am planning to develop an application like Post-It in java. So certainly it needs to be memory resident with no specific main window. how can we write such memory resident application using Java?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13077
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the operating system is Windows, this would be called a windows service. A google search for "java windows service" will find lots of activity.

Bill
 
mutyalarao aripaka
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.

But then as a windows service, will it show an icon in the system tray so that the user can see a context menu on a right click?
[ March 11, 2007: Message edited by: mutyalarao aripaka ]
 
Henry Wong
author
Marshal
Pie
Posts: 22118
88
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by mutyalarao aripaka:
Thanks for the reply.

But then as a windows service, will it show an icon in the system tray so that the user can see a context menu on a right click?


The system tray has nothing to do with whether the java program is a windows service or not. It is implemented by your program, using the GUI toolkit. If you are using AWT/Swing, you will need to upgrade to Java 6. Or you can use SWT instead.

Henry
 
mutyalarao aripaka
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how about using JDIC (Java Desktop Intergration Components) which i caught in google @ https://jdic.dev.java.net/. In taht project they speak of a tool TrayIcon.

Any idea about this?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15642
47
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDIC will also allow you to make a tray icon. But you don't need it if you use Java 6 because in Java 6 it's a standard feature: New System Tray Functionality in Java SE 6.

If you are not / cannot use Java 6 then there are a number of alternatives (including JDIC); search Google for "java system tray icon".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic