• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting focused jtextfield in exteds jPanel

 
Esseghier Abderrahmane
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i was searching for date chooser solustion i'd founed this:




i'v done some modifications to know if the datefield is empty or not and some color modifications if its not enabled,well am using this date chooser in some jframe class,and i wan to know if the datefield is in the focus and if it is,i wan i that if i click some button it will be intialized,i'd traid many solution but none hase fonctionned,how can i do that,thans
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Can you please UseRealWords? Apart from the spelling errors like "fonctionned", there are also a few occurrences of "wan" where you should write "want".
 
Esseghier Abderrahmane
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the solution is to pass constructor object to the panel and set focus listener of the dateField as this object
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!