Skip to main content

Change window top icon

5 replies [Last post]
Anonymous

How can I change the HelpSet window's top left icon?
Now it is always the Java Cup icon.

Thank you!
Per L.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Roger Brinkley

Per Lundkvist wrote:
> How can I change the HelpSet window's top left icon?
> Now it is always the Java Cup icon.

In the

section set the tag to a mapid. I think this tag didn't make it into the JHUG but is in the spec. I'll get our writer to double check that though. Binky ******************************************************************************** You may leave the list at any time by sending message with no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives are available at http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
petr
Offline
Joined: 2004-06-18
Points: 0

Hello,

the recommended way does not work for me:

Taken from the helpset file:
...

main window CPatchWorkbench - Online Help pm ...

...

from the map file:
...

...

The image reference is correct (tested with toplevelfolder).

Petr

dougthompson
Offline
Joined: 2009-07-01
Points: 0

I've been struggling with this, but have found some more information. I am using JavaHelp 2.0.05. I found that with the version 2 release, modifying the icon is no longer supported: "[i]Icon in Title Bar is [b]not customizable[/b] in JavaHelp 2.0[/i]" -- http://www.writersua.com/articles/javahelp/index.html

Is this true, or is there just a way that is not documented?

In addition, when I attempt to modify the icon used for a view by using the tag, it does not work. It actually causes a problem where that view is no longer visible at all unless I remove the tag.

Doug.

dacagl
Offline
Joined: 2007-08-07
Points: 0

Doug, we have been using the presentation tag like the others on this thread for a couple of years now and change the top icon using it...

mainwindow Help logo javax.help.BackAction javax.help.ForwardAction javax.help.SeparatorAction javax.help.PrintAction

Everything works fine for us.

Be sure the 'logo' image is defined properly in your map file, something like...

dougthompson
Offline
Joined: 2009-07-01
Points: 0

Thanks for the input. Are you using JavaHelp version 2.x?

I have done as you have said, verified the image ID is defined in the map, etc. To verify, I also tried using the same image I am using for my 'helpaction' (which is working, so I know the mapping is sound). After searching, that is when I came across this statement that it was no longer supported in JavaHelp version 2.x:

[i]...With JavaHelp 1.1.3, there is no "officially" documented way to change the "coffee cup" icon in the title bar (though if you search the JavaHelp listserv archives, there are instructions for how to accomplish this programmatically). With JavaHelp 2.0, there still is no "official" mechanism for changing the title bar icon, as shown in Figure 2 below. According to Roger Brinkley the framework of the JavaHelp Help broker has fundamentally changed, and thus the instructions posted to the listserv for changing the icon programmatically will not work for the 2.0 release.[/i] (see http://www.writersua.com/articles/javahelp/index.html).

When I found this, I determined that the posts I had read were pre-2.x, and left it at that. When I look at the version for the org.netbeans.modules.javahelp module, it shows the version as 2.10. Can you verify for me the version you are using? Thanks again.

Doug.