Message Dialog in Java Snipnet without ok button but with autoclose 2 sec

Dear all,

please find attached workflow java_window.

Node Java Snipset is showing a window.

How to show the window without ok button?

How to autoclose the window after 2 seconds?

Thx for help!

BR,

Heinz

java_window.knwf