• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Control transfer between Two Textareas

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
madhesh raj
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Call requestFocus() on the TextArea.
 
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic