This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 95035 - I18N - Wrong cursor postition after auto completion
Summary: I18N - Wrong cursor postition after auto completion
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-02-09 04:30 UTC by mikeshimura
Modified: 2007-11-05 13:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mikeshimura 2007-02-09 04:30:45 UTC
I am using netbeans 6.0 with Japanese MS Gothic Font.
After auto completion generate word but cursor postion is not appropriate
position i.e. not last charactor but one or two letter forward from
last charactor. But when I typed keyboard, insertion position is working good.
Comment 1 Vitezslav Stejskal 2007-03-19 07:31:49 UTC
It's looking like one of the problems with multibyte characters. I don't think
the problem is in autocompletion. Have you tried writing the same text manually?
What happened? Was the cursor at the correct position?

There are some long lasting issues with japanese characters in Nb editor. I'm
sorry for that. These issues might be related to your problem - issue #14549,
issue #74285.
Comment 2 mikeshimura 2007-03-19 09:25:40 UTC
I used only single byte english charactors.
After autocompletion of method, first draw using normal font and set cursor positon
at most last position, but then font changed to BOLD but cursor position not
changed, therefor cursor position was not keep last position.

Manual ently of program is okey because cursor position is keeping most last
postion.
Comment 3 Vitezslav Stejskal 2007-03-22 01:15:35 UTC
What font are you using? Is it proportional font? Eg. try typing 'WWWW' at the
beggining of a line and then the same amount of dots '....' on the line right
below it. Do both texts take the same amount of space? Thanks.
Comment 4 mikeshimura 2007-03-22 06:41:45 UTC
I Try to use several fixed width and propotional font but results were all same.
Japanese MS Gothic Fixed width, Japanese MS Gothic Propotional and Arial.

Regards, Mike Shimura
Comment 5 Ken Frank 2007-05-30 03:46:58 UTC
Mike,

I think the problem is not related to which ja fonts you use, but in using im tools
to input multibyte characters vs entering ascii characters ?

ken.frank@sun.com
Comment 6 mikeshimura 2007-05-30 13:28:33 UTC
Hello Ken,

I just inpu ASCII character not Japanese Character.
It seems that first cursor position is determined based on normal font but
after that font changed to Bold type face but cursor position not changed.
Therefore cursor is positioned forward postion than it should be position.

Best regards.
Comment 7 mikeshimura 2007-06-28 13:18:07 UTC
I confirmed that this problem is resolved with M10.
When I put string, it put with appropriate font like bold therefore cursor positon is no need to change.
Comment 8 Vitezslav Stejskal 2007-06-28 14:54:59 UTC
Ok, closing as fixed. Next time please feel free to close issues by yourself if the reported problem is fixed.
Comment 9 Ken Frank 2007-07-06 20:47:37 UTC
v