using Swing components in javafx if they're not in the NetBeans javafx palette
Posted
by Jason S
on Stack Overflow
See other posts from Stack Overflow
or by Jason S
Published on 2009-03-03T20:19:17Z
Indexed on
2010/05/01
23:07 UTC
Read the original article
Hit count: 425
I'm just getting started with javafx in NetBeans, and I have it doing simple stuff (windows with buttons + the like) but would like to try something slightly more realistic.
The "Swing/AWT Components" palette has a whole bunch of stuff that the "JavaFX Script Code Clips" palette does not (it has Button, CheckBox, ComboBox, ComboBoxItem, Label, RadioButton, Slider, TextField, and ToggleButton). How do I add stuff to this palette?
I would like to try using some of the components in org-netbeans-swing-outline.jar
edit: Aha. I was missing the point somewhat: there are only some javafx-wrapped Swing components available in javafx.ext.Swing.*, so if you want one of the other Swing components you have to wrap them yourself.
© Stack Overflow or respective owner