-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can groovyfx use other JavaFX library like JFoenix #55
Comments
if you want to have it named, you can register the name in the bean factory:
https://github.com/groovyfx-project/groovyfx/blob/master/src/demo/groovy/CustomFieldDemo.groovy
for anonymous use, you can use the 'node' or 'container' scenegraph wrappers.
Happy coding
Dierk
… Am 11.05.2018 um 13:14 schrieb bitsnaps ***@***.***>:
Hi,
I'm trying to include JFoenix widgets into groovyfx example, here a sample:
***@***.***([
@grab('org.codehaus.groovyfx:groovyfx:0.4.0'),
@grab('com.jfoenix:jfoenix:8.0.3')
])
import static groovyx.javafx.GroovyFX.start
import com.jfoenix.controls.JFXTextField
start {
stage(title: 'GroovyFX with jFoenix', visible: true) {
scene(fill: BLACK, width: 500, height: 250) {
hbox(padding: 60) {
text(text: 'Groovy', font: '80pt sanserif') {
fill linearGradient(endX: 0, stops: [PALEGREEN, SEAGREEN])
}
text(text: 'FX', font: '80pt sanserif') {
fill linearGradient(endX: 0, stops: [CYAN, DODGERBLUE])
effect dropShadow(color: DODGERBLUE, radius: 25, spread: 0.25)
}
}
}
}
}
`
This example is working fine, and you can see I could import some jfoenix controls without any error or warning on console log, now how can groovyfx builder handle/show jfoenix controls ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Great! it works :) |
🤓
… Am 11.05.2018 um 16:04 schrieb bitsnaps ***@***.***>:
Great! it works and it was great :)
https://gist.github.com/bitsnaps/8a04c04519b22a9833a88cd5e0b9ddb1
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm trying to include JFoenix widgets into groovyfx example, here a sample:
This example is working fine, and you can see I could import some jfoenix controls without any error or warning on console log, now how can groovyfx builder handle/show jfoenix controls ?
The text was updated successfully, but these errors were encountered: