Results 1 to 2 of 2
Thread: cursor position in text area
- 02-02-2011, 06:22 AM #1
Member
- Join Date
- Jan 2011
- Posts
- 36
- Rep Power
- 0
cursor position in text area
hi can anyone pls help me with this.....
I ve to get the character tat the mouse points to at the current position in textarea. im running the java code in netbeans.
The below code does the following
- using file chooser we select a txt file from the system.
- the txt file opens in the textarea.
- the total words in txt file is counted n displayed in a label.
now i want to get the character at the current mouse cursor position in the txt file tat is displayed on the textarea.
i ve attached my code....
but its not working as expected....i m not getting any error..but not able to get the position of the current cursor position.Last edited by Saran185; 02-02-2011 at 08:13 AM.
- 02-02-2011, 07:00 AM #2
Post your code within tags so that it retains its formatting.
And are you going to abandon this thread just like you did with the earlier one?
highlight text
db
Similar Threads
-
Applet program to open a text file and display the content in text area
By bitse in forum Java AppletsReplies: 0Last Post: 12-09-2010, 05:56 PM -
How display text in listbox or text area right to left or center??
By sameer22 in forum CLDC and MIDPReplies: 0Last Post: 09-28-2010, 09:52 AM -
Show Text with cursor
By ravjot28 in forum AWT / SwingReplies: 3Last Post: 01-20-2010, 09:30 PM -
how to point cursor on the 1st text field in a jframe
By VineetKumar in forum AWT / SwingReplies: 4Last Post: 04-17-2009, 02:58 PM -
Java Developer position-San Francisco Bay Area
By perphekto in forum Jobs OfferedReplies: 1Last Post: 03-05-2009, 07:31 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks