import javax.swing.JOptionPane
public void init()
{
JOptionPane.showInputDialog("Enter a String")
JOptionPane.showMessageDialog(null,"MSG","TITLE",JOptionPane.INFORMATION_MESSAGE)
}