Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drag and drop problem in JTextField(urgent)

Status
Not open for further replies.

aminur

Programmer
Sep 7, 2001
4
IN
Hi ! Hope you all be fine
I want to move a selected text in a JTextField from a location to another by pressing the mouse on selected text and dragging it to newer
location in the same textfield(Like Microsoft word) how to do it with my JtextField.Will u help me out please

Regards
Aminur Rashid

 
I don't know, but I suggest that you get a better editor. TextPad (no, I don't work for them, but I find it useful & quite free) is what I use, and it works just like a word prossesor. You can drag & drop just like in MS-Word, you can copy & paste, you can cut & paste, you can run your compiler from Windows. It's a great editor, plus it opens many file types that it doesn't say it supports. ;-) It also supprots Java, C, & C++. :) You can get it for a free, unlimited, trial at LOL "and everything under the sun is in tune
but the sun is eclipsed by the moon." --Pink Floyd: Eclipse


"I'm going to spend eternity
reinstalling Windows." --Reinstalling Windows: by some British guy
 
you did'nt got the problem....I hope so

Please help me
I have added a JTextField In a swing form in my java programme and i want to add the functionality of dragging and dropping the text in that JtextField How to do this by Java code
 
Oh, ok. I get it. You english grammar isn't that good. I don't know how but I think that there is a way. "and everything under the sun is in tune
but the sun is eclipsed by the moon." --Pink Floyd: Eclipse


"I'm going to spend eternity
reinstalling Windows." --Reinstalling Windows: by some British guy
 
I remember there being a good drag and drop demo (with source code) on the sun web site. It was a while ago since I used it and it was based around JLists, but it had a couiple of useful classes such as drop target etc.

bruce21.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top