Bug 55370 - The IDE platform needs to support showUrl in the internal Swing HTML browser
The IDE platform needs to support showUrl in the internal Swing HTML browser
Status: RESOLVED WONTFIX
Product: platform
Classification: Unclassified
Component: -- Other --
4.x
PC All
: P2 (vote)
: 6.x
Assigned To: _ rkubacki
issues@platform
OSLO
: PLATFORM
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-02-22 18:43 UTC by _ potingwu
Modified: 2008-12-22 10:56 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo