avaFX应用程序线程

时间:2019-06-01 05:09:18

标签: java netbeans

<body>Image image = new Image("img/close-icon.png"); 
       [enter image description here][1]Notifications notification = Notifications.create()
                    .title("Er[enter image description here][2]ror: ")
                    .text("Check your username and password again")
                    .hideAfter(Duration.seconds(3))
                    .position(Pos.BOTTOM_LEFT)
                    .graphic(new ImageView(image));
                notification.darkStyle(); 
                notification.show(); 
</body>

0 个答案:

没有答案