ThinkingRock Forum

To go back to http://www.trgtd.com.au
It is currently Thu May 23, 2013 12:44 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: HyperPane caret problem
PostPosted: Thu May 24, 2007 9:22 pm 
Offline

Joined: Mon Dec 11, 2006 7:11 pm
Posts: 386
Location: USA
In HyperEditorPane.java:

When you click the edit toggle button (editButton) and editToggleButtonActionPerformed is called, if you comment out the call to hyperPane.setCaretPosition, the caret is still put to the end of the text anyway. In fact if you put some code on the catch statement and set a breakpoint, it always sends an exception. Similarly removing the hyperPane.setCaretPosition in hyperPaneMouseClicked has no effect (e.g. it still doesn't work).

I haven't yet found where the caret *is* being set from though.

Also I have found that double click to edit of course doesn't work right, but if you double click with your right button, or your middle button if you have it, it *does* in fact work as it is supposed to. So something is handling the left button double click and overriding what we want to happen.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 27, 2007 11:08 pm 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
Ok thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group