If the band's width (titleRectangle.width) is too small to fit any characters in the title, then title.substring(0, title.length() - 1) will throw an IllegalArgumentException when title.length() == 0.
This may be caused by custom Windows display settings. On two Windows machines running identical code, only one experienced this error.
If the band's width (
titleRectangle.width
) is too small to fit any characters in the title, thentitle.substring(0, title.length() - 1)
will throw an IllegalArgumentException whentitle.length() == 0
.This may be caused by custom Windows display settings. On two Windows machines running identical code, only one experienced this error.