This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | JEditorPane gets focus after top component is closed | ||
---|---|---|---|
Product: | editor | Reporter: | err <err> |
Component: | -- Other -- | Assignee: | Vitezslav Stejskal <vstejskal> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | Keywords: | FOCUS |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
err
2010-03-03 12:53:38 UTC
I don't really know what is going on with focus, etc, but my first idea was that Nb never reuses old JEPs for showing editors. So, once jVi decides that a JEP has been closed it can safely ignore any events coming from it. Would that be an acceptable solution on your side? I tried an extremely narrow solution for a few days. After a close if the next focus was to the just closed JEP then ignore it; this worked ok. Since the jVi close is advisory, I didn't want to permanently ignore it in case of a bug somewhere (could be a non NB app). I just tried something else which should be reliable in any situation. If newly_focused_component.isDisplayable() is false then ignore the event. This seems to work and I'll try it for a few days. I looked and sure enough, the component does not have a peer, I'd say this is a JVM bug. Closing this issue. |