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.

Bug 31223 - Cannot use Swing browser on framesets
Summary: Cannot use Swing browser on framesets
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: David Konecny
URL:
Keywords: API
: 5511 32821 (view as bug list)
Depends on: 31509 57994
Blocks: 34742
  Show dependency tree
 
Reported: 2003-02-19 15:44 UTC by Jesse Glick
Modified: 2008-12-22 22:47 UTC (History)
5 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2003-02-19 15:44:55 UTC
Well-known consequence of BT #4479072:
HTMLEditorKit uses always default editor kit for
rendering of frames. The basic problem is that NB
registers its editor kits using
JEditorPane.registerKitForContentType, including
"text/html" -> our
org.netbeans.modules.editor.html.HTMLKit, but
JEditorPane and the Swing kits are not fully
prepared for this.

Specifically, HTML rendering assumes that the
text/html kit is an HTML viewer; not only
HTMLEditorKit itself when working with framesets,
but also many third-party plugin developers assume
this is true as it is in a plain Swing app, and
become very confused when HTML source is rendered
instead!

Possible workaround for the JRE bug on the NB
side: cease to use JEditorPane's registration
mechanism for registering our editor kits. Sort of
an incompatible API change, I think, but probably
one we could live with. Just ignore the JEP
registration mechanism entirely, and roll our own
- probably just using the editor module's existing
mechanism: in
CloneableEditorSupport.createEditorKit, look up
the data object in the system filesystem under
Editors/$contenttype/EditorKit (could also use
JNDI if core/naming is available) and ask for
InstanceCookie (instanceof EditorKit).

Precise impact of API change unknown. Probably
cannot be made fully compatible.
Comment 1 David Konecny 2003-04-30 10:48:54 UTC
Do you think that this issue should be fixed for next version? 
Comment 2 Jesse Glick 2003-04-30 15:27:57 UTC
It would be nice, but I don't know of anything that depends on it.
Comment 3 David Konecny 2003-05-05 16:39:59 UTC
Nice to have == future. Can be changed if somebody depends on this.
Comment 4 Jesse Glick 2003-07-09 16:03:59 UTC
*** Issue 5511 has been marked as a duplicate of this issue. ***
Comment 6 _ pkuzel 2003-09-29 09:24:58 UTC
*** Issue 32821 has been marked as a duplicate of this issue. ***
Comment 7 David Konecny 2003-09-29 11:10:02 UTC
It was fixed for JDK 1.5. Changing this issue to possible ENHANCEMENT
untill the JDK is available.
Comment 8 David Konecny 2003-09-29 12:45:08 UTC
After talk with rkubacki I'm closing as WONTFIX. Any workaround would
be quite difficult and it is possible that the JDK bugfix will get
into 1.4.2_x.