import javax.swing as swing

class jyapplet(swing.JApplet): # should be the same name as the .py file
  def init(self):    
	 firstName = swing.JOptionPane.showInputDialog("Enter your first name")
	 lastName = swing.JOptionPane.showInputDialog("Enter your last name")
	 swing.JOptionPane.showMessageDialog(None,
	 	'Your name is '+firstName+' '+lastName, 'title', 
	 	swing.JOptionPane.INFORMATION_MESSAGE);
import javax.swing as swing

class jyapplet(swing.JApplet): # should be the same name as the .py file
  def init(self):    
	 firstName = swing.JOptionPane.showInputDialog("Enter your first name")
	 lastName = swing.JOptionPane.showInputDialog("Enter your last name")
	 swing.JOptionPane.showMessageDialog(None,
	 	'Your name is '+firstName+' '+lastName, 'title', 
	 	swing.JOptionPane.INFORMATION_MESSAGE);
