• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with implement system tray using jdk 1.5

 
Merlin Chen
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a project that needs to implement a system tray icon. The project is targeted for both windows(XP, Vista, 7) and Linux(with gnome).
The most annoying thing is i can only use JDK 1.5 because the project was prior developed under JDK 1.5 and ported to 1.6 is time cosuming and nearly impossible.
I try to google the solution, and find some info..

1.java.awt.SystemTray is only available under 1.6+.
2.JDIC can work with 1.5, but the JDIC project is inactive for a long time,so JDIC is not the solution .
3.JTray seems very handy,but it's not a free project, as a student,it's too expensive for me .

Any advise will be appreciated.

And i also wondering how to connect a JPopupmenu or Popupmenu with a native right click event on a system tray icon.
 
Paul Clapham
Sheriff
Posts: 21876
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you seriously saying you have a Java codebase which was written for Java 1.5, and which doesn't run under Java 1.6? And are you seriously saying it is going to be a lot of work to make it run under Java 1.6? A programmer would have to work extremely hard to make that happen; normally you don't have to do anything at all to make Java 1.5 code run under Java 1.6, except to change the JRE. Could you give an example of one of the things that programmer did which cause your code not to run under Java 1.6? I'm curious about how that was achieved.
 
Merlin Chen
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:Are you seriously saying you have a Java codebase which was written for Java 1.5, and which doesn't run under Java 1.6? And are you seriously saying it is going to be a lot of work to make it run under Java 1.6? A programmer would have to work extremely hard to make that happen; normally you don't have to do anything at all to make Java 1.5 code run under Java 1.6, except to change the JRE. Could you give an example of one of the things that programmer did which cause your code not to run under Java 1.6? I'm curious about how that was achieved.

Hi Paul Clapham:
Maybe i didn't illustrate my point very well(english is not my native :cry: ,sorry about that). On the code level, there is absolutely no problem on porting to java 1.6. Bu the porject has been deploied for about 3 years and most of the customer machines are running jre 1.5. Using any 1.6 specific features will cause a lot of problems. :cry:
 
Darryl Burke
Bartender
Posts: 5154
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're a student with customers, and a project that's been deployed for 3 years? I'm impressed

But. If your customers want a feature that isn't available free, surely they should absorb the cost?
 
Merlin Chen
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we just omit these details....
 
Rob Spoor
Sheriff
Posts: 20819
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could also try SysTray for Java, which is released under the LGPL. Like JDIC it hasn't had any updates since 2006, but that's not a bad thing per definition. If the project is final and doesn't need bug fixes, then why update it? I think updating for the sake of updating is worse than not updating because it's simply done.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!