Solved

Changing the title bar icon in JavaHelp 2.0

Posted on 2007-03-28
7
525 Views
Last Modified: 2012-06-21
Im trying to update the icon in the title bar in JavaHelp 2.0
Ive read the System User's Guide, and from what I gather all i need to do is add a presentation tag to my helpset file.

I added the following to my helpset file.  The extra tool bar icons are picked up, however the title bar icon is not.  Any ideas why?

   <presentation default="true">
      <name>main window</name>
      <size width="10" height="10" />
      <location x="1200" y="1200" />
      <title>Help Is Right</title>
      <image>MyLogo</image>
      <toolbar>
       <helpaction>javax.help.BackAction</helpaction>
       <helpaction>javax.help.ForwardAction</helpaction>
       <helpaction>javax.help.SeparatorAction</helpaction>
       <helpaction>javax.help.HomeAction</helpaction>
       <helpaction>javax.help.ReloadAction</helpaction>
       <helpaction>javax.help.SeparatorAction</helpaction>
       <helpaction>javax.help.PrintAction</helpaction>
       <helpaction>javax.help.PrintSetupAction</helpaction>
      </toolbar>
  </presentation>

0
Comment
Question by:mcgettiu
7 Comments
 
LVL 3

Expert Comment

by:chandru_in
ID: 18807110
You'll have to create a map file with the following content:

<map version="2.0">
    ...
    <mapID target="overview" url="TaxCalculator/overview.htm" />
    <mapID target="icon" url="images/icon.gif" />
    <mapID target="glossary_icon" url="images/g.gif" />
    <mapID target="addfav_icon" url="images/addfav_icon.gif" />
    ...
</map>

Visit http://www-128.ibm.com/developerworks/java/library/j-javahelp2/ for details.
0
 
LVL 3

Expert Comment

by:chandru_in
ID: 18807127
Create a <maps> section and add the following,
<mapref location="TaxCalculatorMap.jhm" />

You should have the following lines in TaxCalculatorMap.jhm

<map version="2.0">
<mapID target="MyLogo" url="images/icon.gif" />
</map>

0
 

Author Comment

by:mcgettiu
ID: 18807692
Hi there
I had already created a .jhm file, which does include a mapId for my logo

And my .hs file already included a maps section iwth a mapref tag.

Any other ideas why it might not be working?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 30

Expert Comment

by:Mayank S
ID: 18809203
0
 

Author Comment

by:mcgettiu
ID: 18815343
Hi mayankeagle

Thanks for the links - I had previously read that documentation.
I figured out what was going on though - the icon gif file I was using was just too big.  I decreased the colour depth to reduce the size of the file and it worked fine.

Im not sure what I do with the points for this question now?
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 19501093
PAQed with points refunded (250)

Computer101
EE Admin
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
mockito example issue 8 72
Arrays.asList  VS  ArrayList 4 59
Running JavaFX on JDeveloper 12C 1 32
difference between sorce folder and folder in eclipise 3 13
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question