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

JideFX and Scene Builder #15

Closed
wattsie opened this issue May 28, 2014 · 2 comments
Closed

JideFX and Scene Builder #15

wattsie opened this issue May 28, 2014 · 2 comments

Comments

@wattsie
Copy link

wattsie commented May 28, 2014

G'day,
Would anyone able to point me in the right direction. I have been trying to use JideFX with Scene Builder 2 generated FXML files.

It is probably a stupid question... but I'll ask anyway. Sorry if it is out of order.

What is the best method to enable JideFX validation and decoration on a textfield added using SB2?

I understand you need to use "new DecorationPane(pane)" , however, if the pane is generated within SB2, and embedded within other Pane's how would one go about called the DecorationPane method?

I can easily embed the validation within the fxml's controller and I know this works well.

And, If I load the FXML file manually, and wrap the pane within DecorationPane it works and the decorations show when fields are invalid,

Where I am coming unstuck, is I would like to be able to design the GUI within SB2.

Any pointers would be very appreciated.

Thanks in advance.

PS:Understand if it is not easy, and I have to revert to manually coding the GUI, but it would be so much easier if there was a simple way to do this within SB2.

Cheers.

@jidesoft
Copy link
Owner

Unless SB is written with JideFX decoration/validation in mind, there is really no way to make it seamlessly integrated. You can still design in SB because decorations don't change the layout anyway. I believe you can even include a DecorationPane in the hierarchy using SB, I believe. The rest can controlled by code outside SB. You probably can't add all the logic code using SB anyway, right?

@aalmiray
Copy link
Contributor

Better integration with FXML also discussed at #30. Other components may need a facelift too.

@wattsie wattsie closed this as completed Feb 19, 2021
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

3 participants