File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Control transfer between Two Textareas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Control transfer between Two Textareas" Watch "Control transfer between Two Textareas" New topic
Author

Control transfer between Two Textareas

madhesh raj
Ranch Hand

Joined: Nov 28, 2000
Posts: 62
Hi,
I have doubt in AWT. How to transfer cursor control between two Textareas in the same panel? Also how do i make the user give input in one textarea and read it in the other textarea.
Any help will be greatly appreciated
Regards
Madhesh
p sata
Greenhorn

Joined: Feb 26, 2001
Posts: 5
hi,
dont about cursor....
but second one i can help u
have some event(action)
In that event get text from first text area and at same time set that text in second area ...
I hope u got what i am trying to say
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
You need to add listeners to the textarea's and then when you are notified of an event in the textarea you can stop and do stuff (like changing the contents of the other textarea).
To transfer control, when you are notified of an event you can change the focus.
[This message has been edited by Cindy Glass (edited April 02, 2001).]


"JavaRanch, where the deer and the Certified play" - David O'Meara
madhesh raj
Ranch Hand

Joined: Nov 28, 2000
Posts: 62
Hi,
Thanks for ur suggestions. How do i actually transfer the focus to a particular textarea or textbox. The API transferFocus just transfers the focus to the next element in the focus order.
Madhesh
madhesh raj
Ranch Hand

Joined: Nov 28, 2000
Posts: 62
Hi,
Thanks for ur suggestions. How do i actually transfer the focus to a particular textarea or textbox. The API transferFocus just transfers the focus to the next element in the focus order.
Madhesh
Angela Lamb
Ranch Hand

Joined: Feb 22, 2001
Posts: 156
Call requestFocus() on the TextArea.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Control transfer between Two Textareas