Search in sources :

Example 1 with GenericCloseDialog

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);
    });
}
Also used : JPanel(javax.swing.JPanel) GenericCloseDialog(jgnash.ui.components.GenericCloseDialog)

Example 2 with GenericCloseDialog

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);
    });
}
Also used : JPanel(javax.swing.JPanel) GenericCloseDialog(jgnash.ui.components.GenericCloseDialog)

Example 3 with GenericCloseDialog

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);
    });
}
Also used : JPanel(javax.swing.JPanel) GenericCloseDialog(jgnash.ui.components.GenericCloseDialog)

Example 4 with GenericCloseDialog

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);
    });
}
Also used : GenericCloseDialog(jgnash.ui.components.GenericCloseDialog)

Example 5 with GenericCloseDialog

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);
    });
}
Also used : JPanel(javax.swing.JPanel) GenericCloseDialog(jgnash.ui.components.GenericCloseDialog)

Aggregations

GenericCloseDialog (jgnash.ui.components.GenericCloseDialog)9 JPanel (javax.swing.JPanel)6 ResourceBundle (java.util.ResourceBundle)1