use of jgnash.ui.components.GenericCloseDialog in project jgnash by ccavanaugh.
the class MonthlyAccountBalanceChartCompare method show.
public static void show() {
EventQueue.invokeLater(() -> {
MonthlyAccountBalanceChartCompare chart = new MonthlyAccountBalanceChartCompare();
JPanel p = chart.createPanel();
GenericCloseDialog d = new GenericCloseDialog(p, ResourceUtils.getString("Title.AccountBalance"));
d.pack();
d.setModal(false);
d.setVisible(true);
});
}
use of jgnash.ui.components.GenericCloseDialog in project jgnash by ccavanaugh.
the class CurrenciesPanel method showDialog.
public static void showDialog(final JFrame parent) {
final ResourceBundle rb = ResourceUtils.getBundle();
EventQueue.invokeLater(() -> {
GenericCloseDialog d = new GenericCloseDialog(parent, new CurrenciesPanel(), rb.getString("Title.AddRemCurr"));
d.pack();
d.setMinimumSize(d.getSize());
DialogUtils.addBoundsListener(d);
d.setVisible(true);
});
}
use of jgnash.ui.components.GenericCloseDialog in project jgnash by ccavanaugh.
the class SecurityModifyPanel method showDialog.
public static void showDialog(final JFrame parent) {
EventQueue.invokeLater(() -> {
final GenericCloseDialog d = new GenericCloseDialog(parent, new SecurityModifyPanel(), ResourceUtils.getString("Title.CreateModifyCommodities"));
d.setMinimumSize(d.getSize());
DialogUtils.addBoundsListener(d);
d.setVisible(true);
});
}
use of jgnash.ui.components.GenericCloseDialog in project jgnash by ccavanaugh.
the class RecurringPanel method showDialog.
/**
* Show an instance of this panel in a dialog
*
* @param parent parent frame
*/
public static void showDialog(final Frame parent) {
EventQueue.invokeLater(() -> {
final GenericCloseDialog d = new GenericCloseDialog(parent, new RecurringPanel(), ResourceUtils.getString("Title.Reminders"));
d.pack();
d.setMinimumSize(d.getSize());
DialogUtils.addBoundsListener(d, "panelbounds");
d.setModal(false);
d.setVisible(true);
});
}
Aggregations