Example usage for javax.swing JDialog setLocale

List of usage examples for javax.swing JDialog setLocale

Introduction

In this page you can find the example usage for javax.swing JDialog setLocale.

Prototype

public void setLocale(Locale l) 

Source Link

Document

Sets the locale of this component.

Usage

From source file:com.anrisoftware.prefdialog.spreadsheetimportdialog.dialog.SpreadsheetImportDialogWorker.java

@Override
protected JDialog createDialog() {
    JDialog jdialog = new JDialog(parentWindow, APPLICATION_MODAL);
    jdialog.setLocale(getLocale());
    SpreadsheetImportDialog importDialog;
    importDialog = spreadsheetImportDialogFactory.create(savedProperties);
    importDialog.setParentInjector(parent);
    importDialog.setDialog(jdialog);//from   ww w  . j ava2  s  .  c  o m
    importDialog.createDialog(parentWindow, importerFactory);
    setupSavedProperties(properties, savedProperties);
    importDialog.setPropertiesNoChecks(properties);
    jdialog.pack();
    jdialog.setSize(size);
    jdialog.setTitle(getDialogTitleFromResource());
    jdialog.setLocationRelativeTo(parentWindow);
    insertListeners(importDialog);
    this.importDialog = new SoftReference<SpreadsheetImportDialog>(importDialog);
    return jdialog;
}