use of jgnash.engine.ExchangeRate in project jgnash by ccavanaugh.
the class CurrencyExchangeDialog method updateModel.
private void updateModel() {
CurrencyNode base = baseCurrencyCombo.getSelectedNode();
CurrencyNode exchange = exchangeCurrencyCombo.getSelectedNode();
if (base != null && exchange != null) {
ExchangeRate rate = getEngine().getExchangeRate(base, exchange);
model.setExchangeRate(rate);
}
}
Aggregations