JTextComponent c = new JTextArea();
// Set rate to blink once a second
c.getCaret().setRate(1000);
// Set the caret to stop blinking
c.getCaret().setRate(0);
JTextComponent c = new JTextArea();
// Set rate to blink once a second
c.getCaret().setRate(1000);
// Set the caret to stop blinking
c.getCaret().setRate(0);