Examples of DialogGuardarComo


Examples of practica1.ui.dialog.DialogGuardarComo

    @Override
    public void actionPerformed(ActionEvent e) {
        LogicExperimento exp = Controller.getInstance().
                getExperimentoSeleccionado();
       
        DialogGuardarComo dialog = new DialogGuardarComo(
                Practica1.getInstance(), exp);
       
        dialog.setVisible(true);

        if(dialog.getAction() == DialogGuardarComo.ACEPTAR) {
            File fich = new File(dialog.getRutaFichExperimento());
            exp.setFichExperimento(fich);
           
            try {
                ManejoExperimento.guardarExperimento(exp);
            } catch (ExperimentoInvalidoException ex) {
View Full Code Here

Examples of practica1.ui.dialog.DialogGuardarComo

    @Override
    public void actionPerformed(ActionEvent e) {
        LogicExperimento exp = Controller.getInstance().
                getExperimentoSeleccionado();
       
        DialogGuardarComo dialog = new DialogGuardarComo(
                Practica1.getInstance(), exp);
       
        dialog.setVisible(true);

        if(dialog.getAction() == DialogGuardarComo.ACEPTAR) {
           
            if(dialog.isGuardarBD()) {
              exp.setEnBaseDatos(true);
              exp.setNombreExperimento(dialog.getNombreExperimento());
             
              ManejoExperimento.guardarExperimento(exp);
            } else {
                exp.setEnBaseDatos(false);
               
                File fich = new File(dialog.getRutaFichExperimento());
                exp.setFichExperimento(fich);

                ManejoExperimento.guardarExperimento(exp);
            }
        }
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.