java - Swing JTextPane in javafx -
i'm looking rich textarea in javafx. have tried richtextfx component tomas mikula buggy needs.
i thinking whether possible plug in swing jtextpane using swingnode class.
so far works in, can see text in jtextpane , jscrollpane around works. mouselistener on jtextpane seems triggered correctly mouse events other that...nothing works.
there no cursor indicating current position, no way "click" mouse change position, select text,...
key events don't arrive (using keylistener)
is possible use jtextpane in javafx , if so, missing?
currently know workaround problem.
node.setonmousereleased(event -> node.requestfocus());
(node swingnode).
used mousereleased mimic same behavior standard fx nodes.
Comments
Post a Comment