Strange celleditor behavior on Mac [message #1774389] |
Fri, 13 October 2017 15:18 |
Bakjwis Bakjwis Messages: 3 Registered: September 2015 |
Junior Member |
|
|
Hello.
I'm making a program based on NatTable example _447_EditorExample.java.
(NatTable Examples Application>Tutorial Examples>Configuration>Editing>EditorExample)
When I moved selection by keyboard and enter new data, a cell editor opens and the first key input is selected(see attached nattable.png) and overwritten by next key input.
I added next code, but not works.
TextCellEditor textCellEditor = new TextCellEditor(true, true);
textCellEditor.setSelectionMode(EditorSelectionEnum.END);
configRegistry.registerConfigAttribute(
EditConfigAttributes.CELL_EDITOR,
textCellEditor, DisplayMode.NORMAL,
EDITOR_LABEL);
This only happens on macOS.
On Windows, the key input that opens cell editor is not selected.
I tried adding clear the selection code to TextCellEditor's key adapter,
it works with alphanumeric code input, but not works with international code input.
Thanks.
-
Attachment: nattable.png
(Size: 285.74KB, Downloaded 141 times)
[Updated on: Sun, 15 October 2017 07:12] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03098 seconds