Search in sources :

Example 1 with MergeColumnsUI

use of org.gephi.desktop.datalab.general.actions.MergeColumnsUI in project gephi by gephi.

the class DataTableTopComponent method showMergeColumnsUI.

private void showMergeColumnsUI(MergeColumnsUI.Mode mode) {
    JButton okButton = new JButton(NbBundle.getMessage(DataTableTopComponent.class, "DataTableTopComponent.dialogs.okButton.text"));
    MergeColumnsUI mergeColumnsUI = new MergeColumnsUI();
    mergeColumnsUI.setup(mode);
    mergeColumnsUI.setOkButton(okButton);
    DialogDescriptor dd = new DialogDescriptor(MergeColumnsUI.createValidationPanel(mergeColumnsUI), mergeColumnsUI.getDisplayName());
    dd.setOptions(new Object[] { okButton, DialogDescriptor.CANCEL_OPTION });
    if (DialogDisplayer.getDefault().notify(dd).equals(okButton)) {
        mergeColumnsUI.execute();
    }
}
Also used : JButton(javax.swing.JButton) DialogDescriptor(org.openide.DialogDescriptor) MergeColumnsUI(org.gephi.desktop.datalab.general.actions.MergeColumnsUI)

Aggregations

JButton (javax.swing.JButton)1 MergeColumnsUI (org.gephi.desktop.datalab.general.actions.MergeColumnsUI)1 DialogDescriptor (org.openide.DialogDescriptor)1