3
I am developing a PJC (Oracle Forms) component.
I’m making a bean with a jtree inside it.
In a standard java application, it works well, but in PJC there is a strange behavior with the focus.
When I press F2 or a click long to edit a tree node, the editor loses focus. So instead of just starting to type in the new value, I have to manually click on the editor and only then can I change the value.
I don’t know why it happens and how to avoid.
I tried to generate a log of the events of focus:
Tree focusLost e.getOppositeComponent: org.jdesktop.swingx.tree.DefaultXTreeCellEditor$XEditorContainer
Tree focusLost e.paramString: FOCUS_LOST,permanent,opposite=org.jdesktop.swingx.tree.DefaultXTreeCellEditor$XEditorContainer[,38,160,100x16]
Tree focusLost e.getSource: org.jdesktop.swingx.JXTree
Does anyone know how to prevent the editor from losing focus?