Use any swing component
Talk0
118pages on
this wiki
this wiki
Purpose
Edit
Here is a reusable bit of code that provides a quick wrapper for a Swing component that allows it to be used inside of a JavaFX Widget hierarchy.
This solution was derived from this thread on the forums.
Code
Edit
| Code |
|---|
|
If you need more details on making reusable JavaFX code, be sure to read Referencing other JavaFX files.
Usage
Edit
Here is a quick example of usage of SwingWidget. Note that the data provided in the tree comes from the default tree model, and not something special in JavaFX.
