> I have since found that it only seems to blow up if a JComboBox is the > focus when the window is closed. If I click on the exit button no problem. But if > I close by clicking the Window close box and the focus happens to be in a > JComboBox I get the error.
interesting... perhaps you can move the focus explicitely to some "riskless" component prior to calling dispose() > Also I have read the quote from the jdk doc many times and find it > misleading. The native resources may be released but the memory of all > the components does not appear to be released unless you remove the components > from the container and you are usually successful then only if there are > no listeners or you remove the listeners (at least on 1.3.1 and prior, don't > know about 1.4). I find that very misleading too. in fact I relied on that up to this time and did not realize that the components are not collected. but I never had an app with that many windows. please post your solution if you should find a good one. thanks & greets -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net To change your membership options, refer to: http://www.sys-con.com/java/list.cfm
