Close client through scripting

I’m attempting to create an onClick event on a component that will close the client. I want to disable the menu bar for aesthetics-sake, but still want to be able to close the client elsewhere. Any ideaas how to do this? I’m assuming I have to somehow traverse the object model to the JFrame object and close it, but unsure how to do so.

Any assistance will be greatly appreciated.

is

system.util.exit()

not good for you? :slight_smile:

1 Like