Search in sources :

Example 6 with GenericCloseDialog

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

Example 7 with GenericCloseDialog

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

Example 8 with GenericCloseDialog

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

Example 9 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)

Aggregations

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