use of org.apache.pivot.beans.BXMLSerializer in project pivot by apache.
the class StockTracker method startup.
@Override
public void startup(Display display, Map<String, String> properties) throws Exception {
String language = properties.get(LANGUAGE_KEY);
Locale locale = (language == null) ? Locale.getDefault() : new Locale(language);
Resources resources = new Resources(StockTrackerWindow.class.getName(), locale);
BXMLSerializer bxmlSerializer = new BXMLSerializer();
window = (StockTrackerWindow) bxmlSerializer.readObject(getClass().getResource("stock_tracker_window.bxml"), resources);
window.open(display);
}
Aggregations