by
51 7
0
6
1,407
3
Top 1% !
Popular
Famous
Tagged
Specified
OpenSource
Created
Modified Jan 4, 2018

Published on:

JVMjava-8-oracle
LanguageJava

JavaFx message dialog

A utility method to show a message dialog using java fx
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/3301548/JavaFx-message-dialog?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
private void showMessageDialog(String message) { Alert alert = new Alert(AlertType.INFORMATION); alert.setTitle("Confirm Action"); alert.setHeaderText(null); alert.setContentText(message); alert.show(); }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus