import javax.swing.JTextArea;
import javax.swing.text.JTextComponent;
publicclass Main {
publicstaticvoid main(String[] argv) {
JTextComponent c = new JTextArea();
// Set rate to blink once a second
c.getCaret().setBlinkRate(1000);
// Set the caret to stop blinking
c.getCaret().setBlinkRate(0);
}
}