我有以下对话框:

最后一行仅显示文本的一部分 - 文本被剪切而不是文本"..."显示.如何让对话框显示所有文字?
编辑1
这是代码
Alert alert = new Alert(AlertType.CONFIRMATION);
alert.setTitle("????? ?? ?????????");
alert.setHeaderText("?? ????????????? ?????? ????? ?? ??????????");
alert.setContentText("??????? ?? ??? ??????. ??? ??????????? ?????? ? ?????????? ??????? ??????.");
Optional<ButtonType> result = alert.showAndWait();
if (result.get() == ButtonType.OK){
} else {
}
Run Code Online (Sandbox Code Playgroud)
编辑2
此问题仅出现在linux(centos 7.1和gnome 3)中.在Windows 7中,所有文本都以两行显示,一切正常.
编辑3
我认为它与对话窗口的高度相关联.当我alert.setResizable(true)和窗口的高度增加时,第二行出现.
我没有深入挖掘原因,但也可以设置内部对话框窗格的内容:
alert.getDialogPane().setContent( new Label("???? ?????????? ??????"));
Run Code Online (Sandbox Code Playgroud)
编辑:
也许您知道如何更改"取消"按钮的文本?
您可以从对话框窗格中查找"取消"按钮:
Button cancelButton = ( Button ) alert.getDialogPane().lookupButton( ButtonType.CANCEL );
cancelButton.setText("O?????");
Run Code Online (Sandbox Code Playgroud)