The following code in
'echopointng.progressbar.DefaultProgressBarRenderer'
results in a ClassCastException:
boolean isPainted =
Boolean.TRUE.equals(getRP(pb,ProgressBar.PROPERTY_PROGRESS_STRING_PAINTED,fallbackStyle));
if (isPainted) {
String text = (String)
getRP(pb,ProgressBar.PROPERTY_PROGRESS_STRING_PAINTED,fallbackStyle);
_drawText(g, width, height, text, clrForeGround);
}
I think this code should be written as:
boolean isPainted =
Boolean.TRUE.equals(getRP(pb,ProgressBar.PROPERTY_PROGRESS_STRING_PAINTED,fallbackStyle));
if (isPainted) {
String text = (String)
getRP(pb,ProgressBar.PROPERTY_PROGRESS_STRING,fallbackStyle);
_drawText(g, width, height, text, clrForeGround);
}
Attached is a patch file.