> Miguel,
>
> at this moment the menu labels are in property files, but with the new
> system
> it's easier to have them in the source file...
>
> So I'm writing in GuiMap:
>
> Hashtable labels = null;
>
> private Hashtable setupLabels() {
> Hashtable labels = new Hashtable();
> labels.put("file", GT._("File"));
> labels.put("newwin", GT._("New"));
> labels.put("open", GT._("Open"));
> labels.put("openurl", GT._("Open URL"));
> //
> }
>
> And:
>
> String getLabel(String key) {
> if (labels == null) {
> labels = setupLabels();
> }
> String label = labels.get(key);
> if (label == null)
> // Use the previous system as backup
> if (label == null)
> JmolResourceHandler.getStringX(key+"Label");
> return label;
> }
That looks fine with me within the application.
Let's talk before you make any changes to the applet.
Miguel
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers