Examples of showModalDialog()


Examples of org.geotools.swing.data.JDataStoreWizard.showModalDialog()

    // docs end constructor

    // docs start connect
    private void connect(DataStoreFactorySpi format) throws Exception {
        JDataStoreWizard wizard = new JDataStoreWizard(format);
        int result = wizard.showModalDialog();
        if (result == JWizard.FINISH) {
            Map<String, Object> connectionParameters = wizard.getConnectionParameters();
            dataStore = DataStoreFinder.getDataStore(connectionParameters);
            if (dataStore == null) {
                JOptionPane.showMessageDialog(null, "Could not connect - check parameters");
View Full Code Here

Examples of org.geotools.swing.data.JParameterListWizard.showModalDialog()

        list.add(new Parameter<File>("shape", File.class, "Shapefile",
                "Shapefile contents to display", new KVP(Parameter.EXT, "shp")));

        JParameterListWizard wizard = new JParameterListWizard("Image Lab",
                "Fill in the following layers", list);
        int finish = wizard.showModalDialog();

        if (finish != JWizard.FINISH) {
            System.exit(0);
        }
        File imageFile = (File) wizard.getConnectionParameters().get("image");
View Full Code Here

Examples of org.geotools.swing.data.JParameterListWizard.showModalDialog()

    list.add(new Parameter<File>("import", File.class, ext, format,
        new KVP(Parameter.EXT, "sld")));

    JParameterListWizard wizard = new JParameterListWizard("Import Style",
        prompt, list);
    int finish = wizard.showModalDialog();

    if (finish != JWizard.FINISH) {
      return null; // no file selected
    }
    File file = (File) wizard.getConnectionParameters().get("import");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.