<reponame>theHamsta/jpype<filename>examples/stubs/test_awt.py
from jpype import *
import time

def run():
    print('Thread started')
    try:
        print(repr(java.awt.Frame))
        javax.swing.JFrame("Test Frame").setVisible(True)
        shutdownGuiEnvironment()
    except JException as ex :
        print(ex)


startJVM(getDefaultJVMPath())

setupGuiEnvironment(run)
