This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get corsor position back to TextField?  RSS feed

 
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!