From: amwaterhouse Date: Fri, 3 Feb 2006 17:47:55 +0000 (+0000) Subject: Make java 1.1 compatible X-Git-Tag: Root_VamJalview_2_07b+~168 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1c1f44c47bfd8151d846928eda2d95aeff6f8e92;p=jalview.git Make java 1.1 compatible --- diff --git a/src/jalview/schemes/AnnotationColourGradient.java b/src/jalview/schemes/AnnotationColourGradient.java index d91ced5..bc44559 100755 --- a/src/jalview/schemes/AnnotationColourGradient.java +++ b/src/jalview/schemes/AnnotationColourGradient.java @@ -72,7 +72,7 @@ public class AnnotationColourGradient extends ResidueColourScheme public Color findColour(String n) { System.out.println("AnnotationColourGradient findColour(string)"); - return Color.RED; + return Color.red; } /** @@ -87,7 +87,7 @@ public class AnnotationColourGradient extends ResidueColourScheme { if ((threshold == 0) || aboveThreshold(n, j)) { - if(annotation.annotations[j]==null) + if( j+1>annotation.annotations.length || annotation.annotations[j]==null) currentColour = Color.white; else {