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

Controls not recognized in Scene Builder 2.0 #177

Closed
eidbadr opened this issue Sep 7, 2015 · 7 comments · Fixed by #1112
Closed

Controls not recognized in Scene Builder 2.0 #177

eidbadr opened this issue Sep 7, 2015 · 7 comments · Fixed by #1112

Comments

@eidbadr
Copy link

eidbadr commented Sep 7, 2015

Hello,

I want to use the RichTextFX in Scene Build, but they are not recognized. why?

unbenannt

And when I used a StyleClassedTextArea in Intellij I got the following error:

java.io.IOException: javafx.fxml.LoadException:
/E:/B5807012_TP01528/all/java/zisupdate/src/java/resources/zisupdate.fxml

at com.oracle.javafx.scenebuilder.kit.fxom.FXOMLoader.load(FXOMLoader.java:92)
at com.oracle.javafx.scenebuilder.kit.fxom.FXOMDocument.<init>(FXOMDocument.java:80)
at com.oracle.javafx.scenebuilder.kit.fxom.FXOMDocument.<init>(FXOMDocument.java:95)
at com.oracle.javafx.scenebuilder.kit.editor.EditorController.updateFxomDocument(EditorController.java:2370)
at com.oracle.javafx.scenebuilder.kit.editor.EditorController.setFxmlTextAndLocation(EditorController.java:655)
at org.jetbrains.plugins.javaFX.sceneBuilder.SceneBuilderImpl.loadFile(SceneBuilderImpl.java:137)
at org.jetbrains.plugins.javaFX.sceneBuilder.SceneBuilderImpl.create(SceneBuilderImpl.java:59)
at org.jetbrains.plugins.javaFX.sceneBuilder.SceneBuilderImpl.access$000(SceneBuilderImpl.java:28)
at org.jetbrains.plugins.javaFX.sceneBuilder.SceneBuilderImpl$1.run(SceneBuilderImpl.java:47)
at com.sun.javafx.application.PlatformImpl.lambda$null$170(PlatformImpl.java:295)
at com.sun.javafx.application.PlatformImpl$$Lambda$75/3956551.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(PlatformImpl.java:294)
at com.sun.javafx.application.PlatformImpl$$Lambda$74/25598835.run(Unknown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$145(WinApplication.java:101)
at com.sun.glass.ui.win.WinApplication$$Lambda$63/30911611.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)

Caused by: javafx.fxml.LoadException:
/E:/B5807012_TP01528/all/java/zisupdate/src/java/resources/zisupdate.fxml

at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2605)
at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2852)
at javafx.fxml.FXMLLoader.processImport(FXMLLoader.java:2696)
at javafx.fxml.FXMLLoader.processProcessingInstruction(FXMLLoader.java:2665)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2521)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2429)
at com.oracle.javafx.scenebuilder.kit.fxom.FXOMLoader.load(FXOMLoader.java:89)
... 18 more

Caused by: java.lang.ClassNotFoundException: org.fxmisc.richtext.StyleClassedTextArea
at java.lang.ClassLoader.findClass(ClassLoader.java:530)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at javafx.fxml.FXMLLoader.loadTypeForPackage(FXMLLoader.java:2920)
at javafx.fxml.FXMLLoader.loadType(FXMLLoader.java:2909)
at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2850)
... 23 more
unbenannt2

@TomasMikula
Copy link
Member

Hi,

I don't use SceneBuilder myself and I don't know what it takes to make SceneBuilder work with RichTextFX. You are more likely to get an answer if you ask the SceneBuilder folks.

Best,
Tomas

@TomasMikula
Copy link
Member

Closing as this is not a RichTextFX problem.

@Neiko2002
Copy link

I think it is actually a RichTextFX problem. There is nothing the SceneBuilder developers can do to make the RichTextFX components work. The changes have to be made in the RichTextFX code base. Therefore, I would like to reopen the issue in hopes that someone can take a look.

@Jugen
Copy link
Collaborator

Jugen commented May 23, 2022

Download and import the RichtextFX fat jar into SceneBuilder and it'll work.
The latest version is available here.

@Neiko2002
Copy link

True to some extent, but not all classes get imported, like the StyleClassedTextField. So any FXML file containing this class gives an error message along these lines:

Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.fxmisc.richtext.StyleClassedTextField

The same goes for the InlineCssTextField.

@Jugen
Copy link
Collaborator

Jugen commented May 24, 2022

Okay, I've fixed the issue and updated the current releases (0.10.9) fat jar file.

@Neiko2002 First remove the RichTextFX jar file from SceneBuilder before importing the refreshed one.

@Neiko2002
Copy link

The new far jar works fine in SceneBuilder. Thank you very much.

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

Successfully merging a pull request may close this issue.

4 participants