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 115914

Summary: [60cat] I18N problem with some diagram elements
Product: uml Reporter: azizi <azizi>
Component: General DiagramAssignee: Thuy.d Nguyen <thuydn>
Status: VERIFIED FIXED    
Severity: blocker CC: kfrank
Priority: P2 Keywords: I18N
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: normal state before i do double click.
Error state when i do double click.

Description azizi 2007-09-18 21:09:00 UTC
I found that there is a problem with Arabic and Farsi language in uml editor.
The problem is, when i do double click on Activity-Invocation Icon
and try to type something in arabic or farsi, nothing appears till I press Enter.
I have not this problem with English language.
I test this issues with other elements and i have a same problem with these elements too.

Simple State.
Comment.
َUse Case.
Package.

there is no such a problem with other elements that i test till now.
Comment 1 azizi 2007-09-18 21:10:23 UTC
Created attachment 49018 [details]
normal state before i do double click.
Comment 2 azizi 2007-09-18 21:11:12 UTC
Created attachment 49019 [details]
Error state when i do double click.
Comment 3 Ken Frank 2007-09-18 22:19:40 UTC
Azizi,

Could you provide us some additional information ?

- are you in an Arabic locale when running netbeans ?
(ie both 1st and 3rd tab of regional settings are choosing the same language)

- what about typing in the java editor and other parts of netbeans like other windows or dialogs - 
is the typing ok ?

what about when doing a double click like in selecting text in those other parts and then typiing over it -
is that ok ?

- in the case of the first gif, where you can type the Arabic, does it type in ok - does the input and result
the same as your typing Arabic into other windows applications ?

NOTE - there are some issues in netbeans and jdk related to left to right languages.

Thanks for the additional information.

ken.frank@sun.com
Comment 4 azizi 2007-09-19 17:04:11 UTC
--- are you in an Arabic locale when running netbeans ?
--- (ie both 1st and 3rd tab of regional settings are choosing the same language)

No I'm not in Arabic or Persian Local, i am in US English local but when i want to type
something in Persian or Arabic i change keyboard Layout in taskbar.

--- what about typing in the java editor and other parts of netbeans like other windows or dialogs - 
--- is the typing ok ?

No, there is a problem with fonts that i submit it in another issue, because i think this is not 
 related with this issue.

--- what about when doing a double click like in selecting text in those other parts and then typiing over it -
--- is that ok ?

Yes, double clicking in other parts and typing farsi or arabic is OK.

--- in the case of the first gif, where you can type the Arabic, does it type in ok - does the input and result
--- the same as your typing Arabic into other windows applications ?

as i say, when i do double clicking on those elements and type even one character of farsi or arabic everything 
become disappear till i press enter. but typing result is same as what i type at last.
i have this problem only with Simple State - Comment - َUse Case - Package nodes.

Also i can see an application icon in linux taskbar when i doing that.
i think netbeans make a window over the node but show its icon on linux taskbar that is not normal.
i have not such a problem with windows xp. 
you can see that icon blow the netbeans icon on the linux taskbar at this attachment picture (id=49019).
Comment 5 Ken Frank 2007-09-19 17:13:14 UTC
Can you try one more thing - actually be in the arabic locale from logging in in that locale, then start netbeans, 
and then trying the steps ?

and also try typing in the editor to see if font problem is still there.


As to the fonts in editor, what linux os is being used and what is the font path being used
(from commandline, xset q command)

and what is that other issue number about fonts ?
Comment 6 azizi 2007-09-19 18:24:29 UTC
--- actually be in the arabic locale from logging in in that locale, then start netbeans, 
and then trying the steps ?

I test it and problem still exist.


--- and also try typing in the editor to see if font problem is still there.
--- As to the fonts in editor, what linux os is being used and what is the font path being used
    (from commandline, xset q command)
--- and what is that other issue number about fonts ?

you can find your answers in issue no 116047

Thanks.
Comment 7 George Vasick 2007-09-28 22:01:18 UTC
Issue 116054 also relates to the edit control for the same 4 nodes.
Comment 8 Craig Conover 2007-10-02 00:45:55 UTC
cleaned up summary
Comment 9 George Vasick 2007-10-02 17:24:22 UTC
Summary for 60cat bugs should begin with [60cat].

Thanks,
George
Comment 10 Peter Lam 2007-10-08 22:04:01 UTC
the issue is reproducible on windows xp as well when I set the locale to farsi. However, I have no problem in the
package element.
Comment 11 Thuy.d Nguyen 2007-10-11 02:34:29 UTC
Modified the code to change the underlined styled document of the edit control text area to use the default document
that comes with JTextArea.
Comment 12 Joanne Lau 2007-10-11 17:36:34 UTC
Fix verified in build 200710110401 on Ubuntu.  Issue is no longer reproducible.