different ways of closing a jDialog
Im having a jdialog named SUBDIALOG' which will be invoked by an anotther jdialog named 'PARENTDIALOG'.
to close the SUBDIALOG im using the method "dispose()" .
When i reopen the SUBDIALOG a huge run time exception is thrown , which is at the bottom of this mail .
I came to know that its a bug in JAVA which occurs while closing a frame .
So please suggest me the different ways of closing a jDialog .
In the SUBDIALOG ihave used a jTable which is editable .
Whenever i invoke the dialog(containing the Jtable) for the first time , everything will go fine .
After closing the dialog , if we re invoke it, i am unable to edit the Jtable . The following error is being thrown .
java.lang.NullPointerException
at sun.awt.windows.WInputMethod.dispatchEvent(WInputMethod.java:253)
at sun.awt.im.InputContext.dispatchEvent(InputContext.java:238)
at sun.awt.im.InputMethodContext.dispatchEvent(InputMethodContext.java:180)
at java.awt.Component.dispatchEventImpl(Component.java:3565)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:3323)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3180)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

