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 55370 - The IDE platform needs to support showUrl in the internal Swing HTML browser
Summary: The IDE platform needs to support showUrl in the internal Swing HTML browser
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC All
: P2 blocker (vote)
Assignee: _ rkubacki
URL:
Keywords: PLATFORM
Depends on:
Blocks:
 
Reported: 2005-02-22 18:43 UTC by _ potingwu
Modified: 2008-12-22 10:56 UTC (History)
0 users

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 _ potingwu 2005-02-22 18:43:13 UTC
In NetBeans development, there is only one way to
invoke the 'default' browser by:
       import
org.openide.awt.HtmlBrowser.URLDisplayer;
       ....
       URLDisplayer.getDefault().showURL(url); 

However, developer often needs to explicitly
display the target url in either the current
'default' external browser, or the 'internal Swing
HTML browser'.

I.e., the IDE platform needs to support both
modes: When you browse a URL, you sometimes want
internal, you sometimes want external; and the
client code typically knows which mode. Thus,
showUrl() might have a target parameter, or there
might be multiple methods in the URLDisplayer
interface.
Comment 1 Martin Grebac 2005-02-23 08:45:12 UTC
URLDisplayer is part of core
Comment 2 _ rkubacki 2007-01-05 12:20:13 UTC
There is no real HTML browser that can be embedded in GUI and especially the
Swing component has very limited set of supported features.
Comment 3 _ rkubacki 2007-01-05 12:23:35 UTC
That said if you insist on something like Swing HTML browser you can 

- either create your own JEditorPane, assign HTML editor kit to it and handle
hyperlinks
- or iterate through all HtmlBrowser.Factories to find one providing Impl that
returns not-null from getComponent and create HtmlBrowser using this factory
(optionaly with toolbar and location field.)

The plan is to remove Swing browser completely