Java by API/javax.swing.text/Caret — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 14:12, 31 мая 2010
Caret: setBlinkRate(int rate)
import javax.swing.JTextArea;
import javax.swing.text.JTextComponent;
public class Main {
public static void 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);
}
}