As you may know, you don't need to go to the .gradle or .m2 local repositories, you can already retrieve the artifact from the online repositories:
Open the Library Manager and click Search repositories
, type 'charm' and click search. From the list of results, select com.gluonhq:charm
, and press 'Add JAR', and it will import the latest version (3.0.0 as of now), and you will find all the components. Click 'Import Components', and close the dialogs.
There is a known issue when importing jars, though, and some components won't be listed initially, as it happens with View
in the case of the Charm jar.
The good news is it doesn't mean they won't be included: If you close Scene Builder and launch it again, those missing components will show up under the Custom panel.
问题与SceneBuilder扫描jar的方式有关,以找出所有类中哪些是可能的自定义控件候选对象。在此过程中,某些有效控件(如View
)可能会由于类路径冲突而失败,因此它们最初不会在导入对话框中列出。但是,当您关闭SB并使用干净的类路径再次将其打开时,罐子将正常导入,并将View
其余控件添加到“自定义”面板中。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句