python from javax.swing import JFrame, JButton, JLabel from java.awt import FlowLayout frame = JFrame("Jython GUI Example") frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) frame.setLayout(FlowLayout()) label = JLabel("Hello, Jython GUI!") frame.add(label) button = JButton("Click me!") frame.add(button) frame.pack() frame.setVisible(True)


上一篇:
下一篇:
切换中文