This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 19654
    
  18

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: 19654
    
  18

Please read your private messages first, and follow the instructions therein.
 
Consider Paul's rocket mass heater.
 
subject: IN JTextfield on mouse click,should return the clicked text value
 
Similar Threads
Handle Stylus Event
problem with java 6 web services
time dependent dynamic value change problem
How to get aroun LazyInitialization exceptions using Spring HibernateDaoSupport?
Datewise File search