Hi guys
I have using one jformattedtextfield for get date of birth value, after check this date value if it is not valid
date then i have set cursor in that particular jformattedTextField.. Please help me to do this.. anybody please
Set cursor in textfield
Page 1 of 13 Replies - 2318 Views - Last Post: 30 March 2011 - 09:40 AM
Replies To: Set cursor in textfield
#2
Re: Set cursor in textfield
Posted 25 March 2011 - 03:09 PM
You can use the grabFocus() method the JFormattedTextField objects inherit from JComponent to do this.
#3
Re: Set cursor in textfield
Posted 26 March 2011 - 06:33 AM
there is a setCarat() method in JTextField but confirm it in JFormattedTextField
there is a setCarat() method in JTextField but confirm it in JFormattedTextField
there is a setCarat() method in JTextField but confirm it in JFormattedTextField
#4
Re: Set cursor in textfield
Posted 30 March 2011 - 09:40 AM
Like macosxnerd said, setting the focus to a field is probably the best way to go about it. And remember it's always helpful to post your code :-]
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote






|