//Create a new Jframe
var frame = new javax.swing.JFrame();
//Set it on top
frame.setAlwaysOnTop( true );
frame.setLocationByPlatform( true );
//Close it when it closes
//Now get the inputter for the message
var inputter = new javax.swing.JOptionPane();
//Put the dialog there and show the message with the frame as its parent.
var message = javax.swing.JOptionPane.showInputDialog(frame, "Please enter a short message summarizing what you did today.");
//If the message is empty, break.
javax.swing.JOptionPane.showMessageDialog(null, "No message entered. Aborting.");
throw "Process cancelled. Aborting!";
//Set the message property in ANT