aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes IN JTextfield on mouse click,should return the clicked text value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "IN JTextfield on mouse click,should return the clicked text value" Watch "IN JTextfield on mouse click,should return the clicked text value" New topic
Author

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

Ameena Shaik
Greenhorn

Joined: Oct 06, 2009
Posts: 2
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

Joined: Oct 27, 2005
Posts: 19697
    
  20

Use a JSpinner with a SpinnerDateModel instead.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Ameena Shaik
Greenhorn

Joined: Oct 06, 2009
Posts: 2
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

Joined: Oct 27, 2005
Posts: 19697
    
  20

Please read your private messages first, and follow the instructions therein.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IN JTextfield on mouse click,should return the clicked text value