ControlsFx通知将填充添加到应用程序中

时间:2018-05-25 19:15:37

标签: javafx controlsfx tornadofx

This is the image from my system before call ControlsFx notification

This is the image from my system after call ControlsFx notification

在屏幕的左侧,右上方和底部添加边框。我已经搜索了文档,但没有谈论错误。

这是我的代码:

Notifications.create()
                .title(title)
                .graphic(ImageView(Image("/image/error_icon_little.png")))
                .text(text)
                .position(Pos.TOP_RIGHT)
                .hideAfter(Duration.seconds(4.0))
                .show()

0 个答案:

没有答案