This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

how can we write memory resident program

 
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?
 
Author and all-around good cowpoke
Posts: 13078
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 ]
 
author
Posts: 23867
141
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux 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?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • 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".
 
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!