• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get corsor position back to TextField?

 
Yatin Shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sir,

I am using JOptionPane.showConfirmDialog(). I want to get cursor back to TextField while click on YES button. Anyone can tel me how can I get it? Please, help me.


Thanking You
Yatin.
 
sasi kala
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI yatin,

confirmaDialog box will return an integer based on the button click, first check the value return value and do required operation.



Hope This Helps.
All The Best
 
Yatin Shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sir,

I am very thankful to You. Your suggetion is working.


Thanking You
Yatin
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!