I'm developing a PJC (Oracle Forms) component.
I'm creating a Bean with a JTree inside it.
In a standard java application, it works fine, but in PJC a strange behavior occurs with the focus.
When I press F2 or a long click to edit a tree node, the editor loses focus. So instead of just starting typing the new value, I have to manually click on the editor and only then can I change the value.
I do not know why this happens and how to avoid it.
I tried to generate a log of focus events:
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?