For Programmers: Free Programming Magazines  


Home > Archive > Java Help > April 2004 > Oracle Help for Java problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Oracle Help for Java problem
Jakov

2004-04-22, 12:41 pm

Hi

I have a problem regarding localization in Oracle Help for Java(OHJ)
version 4.2.6.
I tried to localize with code listed below, but it seems that it doesnt
work. All help buttons, menus
and rest stuff are still on default English language. Oracle Help guide
refers to "LocalUtils" class but I didn't
find it, I must be doing wrong something. I am using OHJ with my custom
non-Oracle application.

...
void jButton3_actionPerformed(ActionEvent e)
{
try
{
oracle.help.Help.setHelpLocale(java.util.Locale.GERMAN);
setLocale(java.util.Locale.GERMAN);
java.net.URL tempUrl =
getClass().getClassLoader().getResource("mlsOracle/prvadva.hs");
oracle.help.library.helpset.HelpSet tempSet = new
oracle.help.library.helpset.HelpSet(tempUrl);
oracle.help.Help tempHelp = new oracle.help.Help();
tempHelp.addBook(tempSet);
tempHelp.showNavigatorWindow();
}
catch (HelpSetParseException ex)
{
ex.printStackTrace();
}
}
.....

Any help(on OHJ) appreciated.
Jakov
...



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com