How to substitute icons with java endorsed mechanism

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Vincent
Posts: 52
Joined: Thu Dec 15, 2011 7:56 pm

How to substitute icons with java endorsed mechanism

Post by Vincent »

Hi,

With the java endorsed mechanism, we are able to personnalised some text (error, alert etc.).
However, we don't how to change icons... what is the way to proceed ?

For example if I want to change those icons :
Image





Thank you,

Vincent.
Radu
Posts: 9448
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to substitute icons with java endorsed mechanism

Post by Radu »

Hello Vincent,

If you look inside the main Oxygen JAR library:

OXYGEN_INSTALL_DIR\lib\oxygen.jar or OXYGEN_INSTALL_DIR\lib\author.jar

it contains an images folder in which all the images which we use for our buttons, menus and toolbars exist.
The images you are looking for are these ones:
TrackChanges*.gif
AcceptChange*.gif
AcceptChange*.gif
ManageTrackChanges*.gif
In order to overwrite them with your own creations:
In the OXYGEN_INSTALL_DIR\lib directory create a folder called endorsed.
In that folder create another folder called images and in that folder add your own images which should have the same names as the original ones.
You can use this mechanism to overwrite any kind of resource located in the main Oxygen JAR library. The folder structure in the endorsed directory and in the main Oxygen JAR must be identical.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Vincent
Posts: 52
Joined: Thu Dec 15, 2011 7:56 pm

Re: How to substitute icons with java endorsed mechanism

Post by Vincent »

Thank you Radu,

We succeed !



Vincent.
Post Reply