ismaelvc

j_hola.py

Nov 16th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. import sys
  2. from javax.swing import JFrame, JLabel
  3. from java.awt import Dimension
  4.  
  5. marco = JFrame('Ejemplo Jython.')
  6. marco.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)
  7. marco.setPreferredSize(Dimension(300, 300))
  8.  
  9. etiqueta = JLabel('Hola, mundo en: %s' % sys.platform)
  10. marco.add(etiqueta)
  11.  
  12. marco.setVisible(True)
Advertisement
Add Comment
Please, Sign In to add comment