Scusa ma è una domanda inutile... è ovvio che puoi. http://docs.oracle.com/javase/tutori...ts/dialog.html
Regole del Forum