Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes how can we write memory resident program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "how can we write memory resident program" Watch "how can we write memory resident program" New topic
Author

how can we write memory resident program

mutyalarao aripaka
Greenhorn

Joined: Nov 09, 2006
Posts: 6
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?


Regards<br />Mutyala Rao Aripaka<br />Bangalore, INDIA
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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

Joined: Nov 09, 2006
Posts: 6
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
Sheriff

Joined: Sep 28, 2004
Posts: 18553
    
  40

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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
mutyalarao aripaka
Greenhorn

Joined: Nov 09, 2006
Posts: 6
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

Joined: Aug 16, 2005
Posts: 14074
    
  16

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".


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
Don't get me started about those stupid light bulbs.
 
subject: how can we write memory resident program
 
Similar Threads
stay resident in memory
jvm heap size .vs. process size
How I can make a j2me application to be in memory resident?
How Memory is used with Tomcat
Memory management in Java application