AnchorFX | Docking framework for JavaFX platform
kandi X-RAY | AnchorFX Summary
kandi X-RAY | AnchorFX Summary
Docking framework for JavaFX platform
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handle a drag event
- Makes a preview of the picker
- Performs a search for the current zone
- Show the selection of the picker
- Undo the specified node
- Gets the index within the tab
- Hides the dialog
- Close the menu button
- Build the node
- Maximizes the specified node
- Installs the drag event manager listener
- Restore the current pane to its max maximized state
- Build the circle stage
- Creates the rectangle preview
- Changes the state of the mouse commands state
- Presses a station as floating point
- Undock the dock
- Create a dock at the specified position
- Create the selectors of the station
- Build the UI
- Change the state of floating state
AnchorFX Key Features
AnchorFX Examples and Code Snippets
Community Discussions
Trending Discussions on AnchorFX
QUESTION
EDIT: I've left my original question as it was, below. If you wish to test the issue using the AnchorFX sourcecode and my code below, you should be able to recreate the problem. It happens in some other circumstances as well, and is similar to the issues in these two questions: Resize SwingNode in Pane and How to resize Swing control which is inside SwingNode in JavaFX8? Neither of whose answers proved helpful to me, but maybe the answer I found will help someone else in the future.
I have a JTable
inside a JScrollPane
and I need to embed it into a javafx application. I am trying to do this using the AnchorFX docking framework. I also need this SwingNode to somehow be inside a Control
(the two I have tried are ScrollPane
and SplitPane
) so that I can add a ContextMenu
to it which is consistent with the rest of the application.
The problem is, when I 'dock' and 'undock' tabs or simply resize the window or the panes inside the window, the JScrollPane
with the table in it does not resize properly.
I have modified one of the demos from the AnchorFX project to show my problem:
...ANSWER
Answered 2017-Oct-04 at 17:11So it turns out, SwingNode has a Parent who resizes itself appropriately, but SwingNode itself wasn't resizing, it is sized based on its contents. I solved this by making the following calls when a DockNode was docked or undocked:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AnchorFX
You can use AnchorFX like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the AnchorFX component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page