[ 
https://issues.apache.org/jira/browse/NETBEANS-4940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17226353#comment-17226353
 ] 

Ernie Rael commented on NETBEANS-4940:
--------------------------------------

One possible solution is to add this method to BaseCaret
 {code}
protected void adjustCaretBounds(Rectangle bounds, int offset) {
    bounds.width = Math.max(bounds.width, 2);
}
{code}
which is called from udpateCaretBounds.
 !CaretCircle.png! 
 In a BaseCaret subclass, an experiment to draw a circle around the caret 
position worked by overriding the above method with a suitable algorithm.

> Caret drawing problems over a TAB
> ---------------------------------
>
>                 Key: NETBEANS-4940
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4940
>             Project: NetBeans
>          Issue Type: Bug
>          Components: editor - Other
>    Affects Versions: 12.1
>            Reporter: Ernie Rael
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: CaretCircle.png
>
>          Time Spent: 5h 10m
>  Remaining Estimate: 0h
>
> To recreate.
>  # Open a file in the editor (emptyfile, java file,...)
>  # Insert a tab into the file
>  # Place the caret over the tab
> Observe the caret as it blinks and notice that it only partially blanks. 
> There is a vertical artifact.
> The jVi application uses a block caret (rather than a vertical line) and the 
> problem is more more pronounced.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to