Total members 11894 |It is currently Thu Nov 21, 2024 6:38 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





I've written an application that contains several editable JTextAreas
and JTextFields. It also has a menu bar. I've written code to copy
and paste with menu bar commands. I'm having problems with the paste.
The problem is getting the application to choose the correct text
element in which to insert the clipboard text. I want it to go to the
text field or area where I have clicked the mouse and inserted a
visible cursor. Normal windows text editing behavior.

What I know wont work:
- Choosing the textarea with focus. Focus goes to the menubar by
clicking edit/paste.
- Locating the text caret, getCaret(). All the text elements have
one, I want the cursor, not the caret.

I'm sure there must be a simple api, but I can't find it. Any ideas
would be appreciated




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Finding The Blinking Cursor
 Finding a Substring Within a String in php     -  
 finding the largest integer     -  
 Change cursor to help     -  
 JavaScript Cursor     -  
 Change cursor to crosshair     -  
 Change cursor to move     -  
 Change cursor to wait     -  
 custom cursor in javascript     -  
 Change the mouse cursor to hand pointer     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com