我是 ControlsFX 的新用户,我有一个不明白的问题:
我的代码:
Dialogs.create()
.owner(mainStage)
.title("Information Dialog")
.masthead("Test masthead")
.message("Test message")
.showInformation();
我得到了一个异常(exception):
Exception in thread "JavaFX Application Thread" java.util.MissingResourceException: Can't find bundle for base name impl.org.controlsfx.dialog.resources.oxygen.dialog-resources, locale fr_FR
有人知道为什么会发生这种情况吗?
谢谢。
最佳答案
您下载了正确的 JAR 吗?又名:ControlsFX-8.0.6
因为我使用指定的 JAR 编写了这个最简单的程序,并且没有出现任何错误:
import javafx.application.Application;
import javafx.stage.Stage;
import org.controlsfx.dialog.Dialogs;
public class Test extends Application {
@Override
public void start(Stage primaryStage) {
Dialogs.create()
.owner(primaryStage)
.title("Information Dialog")
.masthead("Test masthead")
.message("Test message")
.showInformation();
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
launch(args);
}
}
还请考虑在此处的官方群组支持中提出您的问题:http://groups.controlsfx.org ,您可能会有更多答案。
关于java - ControlsFX 8.0.6 对话框 java.util.MissingResourceException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25258167/