how can i set the image icon in javahelp?

hi guys,i wan to change the icon (java cup) at the left corner of the frame used by javahelp. How can i do this?thankspradeep
[160 byte] By [whizlabs] at [2007-9-26 7:03:16]
# 1
I'm trying to do the same.Did you get any private answer or solved the problem?Regards,Gabriel
belingueres at 2007-7-1 16:40:48 > top of Java-index,Desktop,Developing for the Desktop...
# 2
I'm trying to do the same - have you found out how to set it?I'd be forever indebted to you if you could tell me how.Thanks ever so much in advance
karenob at 2007-7-1 16:40:48 > top of Java-index,Desktop,Developing for the Desktop...
# 3

If your main application extends a JFrame and you have an icon image set for this frame using the 'setIconImage' then it's straight forward. Instantiate your help to display within your current frame object using 'this'. The following code is an example only and is not final, but you'll get the idea...

HelpSet hs = null;

HelpBroker hb = null;

try

{

URL hsURL = HelpSet.findHelpSet(null, "url to my help");

hs = new HelpSet(null, hsURL);

hb = hs.createHelpBroker();

}

catch (Exception ee)

{

System.out.println("HelpSet "+hs+" can not be found");

return;

}

((DefaultHelpBroker)hb).setActivationWindow(this);

hb.setDisplayed(true);

delaneyphilip at 2007-7-1 16:40:48 > top of Java-index,Desktop,Developing for the Desktop...
# 4
I tried it and it didn't work, neither on Windows nor Solaris.Gabriel
belingueres at 2007-7-1 16:40:48 > top of Java-index,Desktop,Developing for the Desktop...
# 5
A friend of mine had similar trouble even though it worked for me. I couldn't figure it out. He tried the following. He created a JDialog class first to render the help...HelpDialog thisHelp = new HelpDialog(this);((DefaultHelpBroker)hb).setActivationWindow(thisHelp);
delaneyphilip at 2007-7-1 16:40:48 > top of Java-index,Desktop,Developing for the Desktop...
# 6
Dear friend,It's great.It worked for me, the icon changes, but the Help window disappears, when the screen for which the help is set, is closed.This should not happen, the Help window should remain there,got any solution for this?Best regards,Harilal
HLL at 2007-7-1 16:40:48 > top of Java-index,Desktop,Developing for the Desktop...
# 7
hi i tried in same way but the image is not changing..how to proceed..thanksnagesh
nagesh_nalluru at 2007-7-1 16:40:48 > top of Java-index,Desktop,Developing for the Desktop...