Java Code Examples for javax.swing.JFrame.dispatchEvent()

The following are Jave code examples for showing how to use dispatchEvent() of the javax.swing.JFrame class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: poi-visualizer   File: POITopMenuBar.java   Source Code and License Vote up 4 votes
private void fireClose() {
	final JFrame mainFrame = appContext.getBean(POIMainFrame.class);
	final WindowEvent we = new WindowEvent(mainFrame, WindowEvent.WINDOW_CLOSING);
	mainFrame.dispatchEvent(we);
}