javaee / javahelp

javahelp
Other
14 stars 15 forks source link

Links to external URLs in Java Help #30

Closed glassfishrobot closed 13 years ago

glassfishrobot commented 13 years ago

I searched different sources on the internet to learn whether it is possible to open external URLs from Java Help. The information I found is quite contradictory. Even though some sources claimed that it is possible to open external URLs in Java Help (perhaps in a new window) I was not able to make this work either using the object "tag" or the standard "a" tag.

I was wondering if it would be possible to add the following functionality to future releases of Java Help.

Thank you.

Pavel Skopik

Affected Versions

[current]

glassfishrobot commented 13 years ago

Reported by pavel_s

glassfishrobot commented 13 years ago

jglick said: From a NetBeans module you can use

<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
  <param name="content" value="http://...">
  <param name="text" value="<html><u>...</u></html>">
  <param name="textFontSize" value="medium">
  <param name="textColor" value="blue">
</object>

with https://hg.netbeans.org/core-main/raw-file/default/javahelp/src/org/netbeans/modules/javahelp/BrowserDisplayer.java as the implementation. This is just an example; you could create and embed any similar component, perhaps using java.awt.Desktop.browse.

You can also use the JDIC integration so a real browser is used for rendering.

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAVAHELP-30

glassfishrobot commented 13 years ago

Marked as works as designed on Tuesday, May 24th 2011, 7:47:35 am