> I was thinking that maybe there was a more subtle way of doing that. 
> Something like:
...
>         Resources resources = new Resources(getClass().getName(), 
> Locale.getDefault());
>         bxmlSerializer.Update/Reload(resources);

Unfortunately, no. BXMLSerializer simply reads an XML file and outputs the 
corresponding object hierarchy. As the file is read, resource substitution is 
performed. In order to reload the resources you need to reload the BXML file.

> It works to update localized strings but even if it is easy to reload all 
> data displayed in the UI by using data binding after reloading the bxml file, 
> I will loose the state of the UI (split ratio of splitters, selected tab in a 
> tab pane, etc.).

Yes, that would be a side effect of reloading the UI. You'll want to save any 
persistent state locally so you can restore it when you reload the UI. You can 
use the standard JDK preferences API for this:

http://download.oracle.com/javase/6/docs/api/java/util/prefs/package-summary.html

Reply via email to