1 回答

TA貢獻2036條經驗 獲得超8個贊
我無法檢查如何更改通知的用戶界面。
Notify.create()
? ? ? .title(text)
? ? ? .text(title)
? ? ? .position(Pos.TOP_RIGHT)
? ? ? .onAction( new ActionHandler<Notify>() {
? ? ? ? ? ? @Override
? ? ? ? ? ? public void handle(Notify value) {
? ? ? ? ? ? ? ? if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
? ? ? ? ? ? ? ? ? ? try {
? ? ? ? ? ? ? ? ? ? ? ? Desktop.getDesktop().browse(new URI(targetUrl));
? ? ? ? ? ? ? ? ? ? } catch (IOException e) {
? ? ? ? ? ? ? ? ? ? ? ? e.printStackTrace();
? ? ? ? ? ? ? ? ? ? } catch (URISyntaxException e) {
? ? ? ? ? ? ? ? ? ? ? ? e.printStackTrace();
? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? }
? ? ? ? ? ? }
? ? ? })
? ? ? .hideAfter(5000)
? ? ? .shake(250, 5)
? ? ? .darkStyle()? ? ? // There are two default themes darkStyle() and default.
? ? ? .showConfirm();? ?// You can use warnings and error as well.
在您的主塊中添加以下代碼,然后就可以開始了。
添加回答
舉報