dtn*_*der 1 java swing cursor jframe textfield
我有两个文本字段,text_field2 text_fiel1.当程序直接运行到文本光标时自动text_field1.我想问一下,如果在text_field2中自动运行程序而不是在text_cursor1中,我怎样才能生成文本光标?
vik*_*vde 7
JTextfield的requestFocus()方法会做.看看这个http://www.java2s.com/Code/JavaAPI/javax.swing/JTextFieldrequestFocus.htm
归档时间:
12 年,11 月 前
查看次数:
12739 次
最近记录: