Download this file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# an example to show how new menus can be added to the interface from javax.swing import * from java.awt import * from java.lang import * from com.hp.hpl.guess.ui import StatusBar def test(): StatusBar.setStatus("test",0) testMenu = JMenu("Test") testi = JMenuItem("Test") testMenu.add(testi) testi.actionPerformed=lambda event : test() # uncomment the line below to add the test menu #ui.getGMenuBar().add(testMenu)