Question: how to use jdialog in netbeans?
Answer: You can suppose off a dialog as a straightforward pop-up window which will show a warning or maybe asks for a confirmation. ... 
3 - Nothing appeared on your screen, you are doing right! ... 
6 - Right click your OK button and choose action>actionPerformed below events.