We were over-riding the dispose method of JFrame to try to help garbage
collection. The method was very simple as shown below.
public void dispose(){
analyzeModel = null;
analyzeJTable = null;
super.dispose();
getContentPane().removeAll();
}
The super.dispose() call generates the following exception:
java.lang.IllegalStateException: Can't dispose InputContext while it's
active
at sun.awt.im.InputContext.dispose(InputContext.java:596)
at java.awt.Window$1$DisposeAction.run(Window.java:539)
at java.awt.Window.dispose(Window.java:549)
at dpak.purchase.RequisitionView.dispose(RequisitionView.java:726)
at
dpak.purchase.RequisitionView$7.windowClosing(RequisitionView.java:441)
at java.awt.Window.processWindowEvent(Window.java:1098)
at javax.swing.JFrame.processWindowEvent(JFrame.java:266)
at java.awt.Window.processEvent(Window.java:1057)
at java.awt.Component.dispatchEventImpl(Component.java:3526)
I'm a little fuzzy about what input context it is complaining about. Any
ideas?
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm