RFR: 8264728: When use chinese IME, the candidate box isn't moved with caret of JTextArea [v2]

柳鲲鹏 duke at openjdk.org
Fri Aug 18 13:25:37 UTC 2023


On Fri, 18 Aug 2023 12:55:45 GMT, 柳鲲鹏 <duke at openjdk.org> wrote:

>> src/java.desktop/unix/classes/sun/awt/X11/XInputMethod.java line 208:
>> 
>>> 206:              y += temp.getY();
>>> 207:              temp = parent;
>>> 208:         }
>> 
>> Have you tried to use just _java.awt.Component#getLocationOnScreen_?
>
>> Have you tried to use just _java.awt.Component#getLocationOnScreen_?
> 
> Thanks for reply.
> 1, I will research the document. I tested some linux oses, only ubuntu has problem.
> Is there a macro to tell us the system is ubuntu?
> 2, On linux, IME need the offset position of JTextArea from focus window(frame/dialog). So we use a loop to get it.
> 
> Good luck!

First result:
When using XIMPreeditPosition, the XCreateIC() return NULL.
So suggest that we fix the problem first, and a comment with reason.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13055#discussion_r1298447558


More information about the client-libs-dev mailing list