• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IN JTextfield on mouse click,should return the clicked text value

 
Ameena Shaik
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,pleases help me in this issue
in Jtext field contains text 06-10-2009 08:45 (date format value)
on mouse click on 06 value in text should return 06 text to me
if I click on 2009,it must return 2009 value

Notenly on single click
 
Rob Spoor
Sheriff
Pie
Posts: 20393
47
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a JSpinner with a SpinnerDateModel instead.
 
Ameena Shaik
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Robe,
I am using Jspinner with a SpinnerDateModel
here the Jtextfield is ((JSpinner.DefaultEditor)endTimeTxt.getEditor()).getTextField()
in which on single click on the text ,it should return me text.
please help in this regard
 
Rob Spoor
Sheriff
Pie
Posts: 20393
47
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read your private messages first, and follow the instructions therein.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic