use of jgnash.ui.components.GenericCloseDialog in project jgnash by ccavanaugh.
the class MonthlyAccountBalanceChart method show.
public static void show() {
EventQueue.invokeLater(() -> {
MonthlyAccountBalanceChart chart = new MonthlyAccountBalanceChart();
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 IncomeExpensePieChart method show.
public static void show() {
EventQueue.invokeLater(() -> {
final IncomeExpensePieChart chart = new IncomeExpensePieChart();
final JPanel p = chart.createPanel();
final 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 RunningAccountBalanceChart method show.
public static void show() {
EventQueue.invokeLater(() -> {
RunningAccountBalanceChart chart = new RunningAccountBalanceChart();
JPanel p = chart.createPanel();
GenericCloseDialog d = new GenericCloseDialog(p, ResourceUtils.getString("Title.EndMonthBalance"));
d.pack();
d.setModal(false);
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);
});
}
use of jgnash.ui.components.GenericCloseDialog in project jgnash by ccavanaugh.
the class PayeePieChart method show.
public static void show() {
EventQueue.invokeLater(() -> {
PayeePieChart chart = new PayeePieChart();
JPanel p = chart.createPanel();
GenericCloseDialog d = new GenericCloseDialog(p, ResourceUtils.getString("Title.AccountBalance"));
d.pack();
d.setMinimumSize(d.getSize());
DialogUtils.addBoundsListener(d);
d.setModal(false);
d.setVisible(true);
});
}
Aggregations