Package eas.miscellaneous.system.windowFrames

Examples of eas.miscellaneous.system.windowFrames.GeneralDialog


        informAboutPausedSimulation();
        return true;
    }

    public static void informAboutPausedSimulation() {
        GeneralDialog dia2 = new GeneralDialog(
                null,
                "Simulation state has been reloaded\n"
                + "Note that the simulation might be paused according to its last runtime state.",
                "Info: Simulation state reloaded",
                GeneralDialog.OK_BUTT,
                null);
        dia2.setVisible(true);
    }
View Full Code Here


        Object[] list = new Object[m.getParameterCount()];
       
        int i = 0;
       
        for (Parameter par : m.getParameters()) {
            GeneralDialog dia = new GeneralDialog(
                    this,
                    null,
                    "Value for parameter '" + par + "' (method " + m.getName() + ")",
                    GeneralDialog.OK_BUTT,
                    "" + par.getType(),
                    1,
                    10,
                    true);
            dia.setVisible(true);
            String t = dia.getText();
           
            if (par.getType().equals(Boolean.class) || par.getType().equals(Boolean.TYPE)) {
                list[i] = Boolean.parseBoolean(t);
            } else
            if (par.getType().equals(Double.class) || par.getType().equals(Double.TYPE)) {
View Full Code Here

        } else if (butt.getText().equals(chartText)) {
            Method m = this.allButtonsChart.get(butt);
            m.setAccessible(true);
            Object[] pars = this.getParametersFor(m);
           
            GeneralDialog dia1 = new GeneralDialog(
                    this,
                    null,
                    "The name of the chart to add the series",
                    GeneralDialog.OK_BUTT,
                    "Chart name",
                    1,
                    20,
                    true);
            dia1.setVisible(true);
            String chartName = dia1.getText();
           
            GeneralDialog dia2 = new GeneralDialog(
                    this,
                    null,
                    "The name of the series",
                    GeneralDialog.OK_BUTT,
                    m.getName() + "-agent-" + invokerAgent.id(),
                    1,
                    20,
                    true);
            dia2.setVisible(true);
            String seriesName = dia2.getText();
           
            ChartEvent event = new ChartEvent(chartName, seriesName, 0);
            events.put(event, pars);
            chartMethods.put(event, m);
            chartAgents.put(event, invokerAgent);
View Full Code Here

TOP

Related Classes of eas.miscellaneous.system.windowFrames.GeneralDialog

Copyright © 2018 www.massapicom. 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.