Annotations in JET documents can be highlighted with customizable background colors.
Pairs of annotation type and its color (hash code) are stored in a hash table in the class Jet.Tipster.AnnotationColor. The pairs are also written to the file Jet/Data/annColor.clr. When the JET console first starts, it attempts to read the annotation type/color pairs from the file annColor.clr. If annColor.clr doesn’t exist, a new one is created. If an annotation in annColor.clr doesn’t have a corresponding color, a default one would be the hash code of the annotation type itself.
Colors can be updated either by changing the data in the annColor.clr file or using the color chooser (invoked from menu Tools | Customize Annotation Colors …). When updated, both the hash table and annColor.clr are updated correspondingly.
Example: Suppose annColor.clr doesn’t exist when the JET is started. Start the color chooser by Tools | Customize Annotation Colors …. Process documents and view annotated documents. Select a type from a JET document, say, “text”. A new button “text” with the default background color is added to the color chooser. Pressing the button “text” brings up the built-in Java color chooser. Use the color chooser to choose any color you like. The color paired with annotation type “text” is updated if a new color is chosen.
Note that the highlight of an annotation type in a JET document is not automatically updated when you choose a new color for the type in the color chooser. You need to select another type and then get back to the original one to see the change. Sorry for this inconvenience.