【发布时间】:2015-06-17 16:56:08
【问题描述】:
使用 NetBeans。我需要有关在 FXML 文件中定义内部类的语法方面的帮助。
Bar 是 Foo 的内部类的示例类:
public class Foo {
//... Foo stuff
public class Bar {
//... Bar stuff
}
}
在 FXML 文件中,我想使用外部类和内部类。外部类 Foo 被识别,但内部类提出“类不存在:Foo.Bar”。
FXML 示例:
<?import customcontrol.*?>
<Region>
<Foo name="thebigfoo" />
<Foo.Bar name ="inner"/>
</Region>
P.S 这是第一篇文章,所以我希望问题格式正确:)
【问题讨论】: