Hi,
I've never had problems with awt components - try this barebones script, see if it works for you. Note the windowCloising event handler requires a WindowEvent as an argument, but there's no obligation to use it (useful in a more complicated setup, you can query the event which window it came from, and call dispose() on that).
Here's the code, hope it helps,
Dave
========================================
import java
def bye(windowevent):
print windowevent #just out of interest
f.dispose()
java.lang.System.exit(0)
f=java.awt.Frame("testing",bounds=(64,64,320,320),visible=1,windowClosing=bye)
>I don't get it. If I instantiate a Frame, it never goes away and holds up
>the interpreter from exiting.
|