smanjil
5/15/2016 - 12:33 PM

JFrame Hello World Title!!!!

JFrame Hello World Title!!!!

from javax.swing import JFrame

# JFrame('Hello World!!!!', defaultCloseOperation=JFrame.EXIT_ON_CLOSE, size=(300, 300), locationRelativeTo=None).setVisible(True)
# f = JFrame('Hello World!!!!', defaultCloseOperation=JFrame.EXIT_ON_CLOSE, size=(300, 300), locationRelativeTo=None)
# f.setVisible(True)

f = JFrame('Hello World!!!')
f.defaultCloseOperation = JFrame.EXIT_ON_CLOSE
f.size = (300, 200)
f.locationRelativeTo = None
f.setVisible(True)