I have found the solution. Override the focusGained
method of your HighlightCaret
and set the blink rate there as well.
@Override
public void focusGained(FocusEvent e)
{
isFocused = true;
super.setBlinkRate(500);
super.focusGained(e);
}
This did the trick for me in OS X.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…