Skip to content
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

Open
bitsnaps opened this issue May 11, 2018 · 3 comments
Open

Can groovyfx use other JavaFX library like JFoenix #55

bitsnaps opened this issue May 11, 2018 · 3 comments

Comments

@bitsnaps
Copy link

bitsnaps commented May 11, 2018

Hi,
I'm trying to include JFoenix widgets into groovyfx example, here a sample:

@Grapes([
	@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 ?

@Dierk
Copy link
Member

Dierk commented May 11, 2018 via email

@bitsnaps
Copy link
Author

bitsnaps commented May 11, 2018

@Dierk
Copy link
Member

Dierk commented May 11, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants