Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Bodgitt n Scarper - Assigning image to system tray icon

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have implemented my server functionality through the new System tray API in JDK 1.6.
But, the main problem i encountered is assigning it a icon through my jar. If i put an image in the submission jar, it would be
against the Bodgitt and Scarper requirement. For the time being, i have kept no image, but it looks transparent and non-indicative of server functionality
without appropriate icon.

Please tell me how if i should keep it image'less or i can put the image in the jar by any means not violating the must requirements.
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no need for system tray functionality, so why making all the effort for something that's not required.

Why do you think adding images to the runme.jar is against the requirements?
 
sujal nagarkar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to try the System tray functionality provided in JDK 1.6, so i used it in my system, to give it a server like feel.

The structure mentioned in the instructions.html says - "where a specific spelling or structure is required, even a slight deviation could result in automatic failure."

Doesn't it mean putting an image in the submission jar might be violating this requirement?
 
Roel De Nijs
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should put an image you want to use in your application inside the "runme.jar", not in your submission jar. Otherwise your application will not be able to access the image.
 
sujal nagarkar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it permissible to add images in runme.jar?
 
Roel De Nijs
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no must requirement, so I didn't do it. But I know people who added images to their runme.jar and used them as icons for menu-items, buttons,... and they passed. Using the search engine you can find a lot of valuable information about this functionality, e.g. here.
 
Always! Wait. Never. Shut up. Look at this tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic