on 1/16/00 8:40 AM, Jonas Maurus <[EMAIL PROTECTED]> wrote:

> 
> Hi.
> 
> Is there any possibility for the User to jump directly to a FAQ without
> invoking MainMenu.class first ?

Yes. You can enter a URL directly and MainMenu will not be executed.

> If there is no such possibility (like Bookmarking a FAQ directly), this
> would enable us to create a static resource object in MainMenu (Jyve's
> main class, isn't it), so we don't have to load all resources again and
> again in each class.
> 
> like:
> public static ResourceBundle JyveResources =
> ResourceBundle.getBundle("JyveResources",
> LocaleChosenByUserInConfigFile);

You could do it as a singleton so that it is only loaded once. Singleton's
are your friends. Get to love them and know them. ;-)

More like:

JyveLocalization.getInstance().getString("identifier")

In getInstance() you could execute the code you wrote above in order to
define the name of the resources file. That name could be retrieved from the
TurbineResources.properties file.
 
Also, I use the word JyveLocalization (or JyveLocal) in order to make the
difference between resources (which should be defined in
TurbineResources.properties) and your localization efforts which would
reside in different files.

Make sense?

-jon

-- 
Come to the first official Apache Software Foundation
Conference!  <http://ApacheCon.Com/>



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to