I am implementing a tabkin that can be separated from the JavaFX window. When the tab panel is pulled out of the window where it came from, I have to create a new window and the tab to be placed in that window. I have already applied some methods using drag gestures, drag the tab between the existing window. However, when I'm taking a mouse out of javax sequences, I'm not able to get any mouse events or drag events. Is this something possible? You can listen to a mouse release incident on the appropriate node (like the graphic of the tab). Check the screen coordinates using MouseEvent.getScreenX () and MouseEvent.getScreenY () and see if they are out of the current window. If they do, create a new window, view and tab panel; Remove the tab from the current tab panel and place it in a new location. There is no fundamental example with no frills (for example, a user does not indicate that the dragging is happening), but you should consider this: import Please ...
Comments
Post a Comment