Package Modelo

Examples of Modelo.Cd


            sb.append("-");
            sb.append(dia.getText());
            JTextField fecha = new JTextField(sb.toString());
            Boolean fechaValida = Vistas.getInstance().alquiler.validarFecha(fecha);
            if (idValido && noRepetido != null && noRepetido && fechaValida && ejemplaresValido) {
                Cd a = new Cd(Integer.parseInt(id.getText()), titulo.getText(), tema.getText(), new DateTime(fecha.getText()), tipoContenido.getSelectedItem().toString(), formato.getSelectedItem().toString());
                for (int i = 1; i < Integer.parseInt(ejemplares.getText()); i++) {
                    a.getEjemplares().put(i, new Ejemplar(i));
                }
                mapaArticulos.put(a.getIdArticulo(), a);
                JOptionPane.showMessageDialog(null, "Articulo creado exitosamente");
            } else {
                sb = new StringBuilder();
                sb.append("Datos invalidos:");
                if (!idValido) {
View Full Code Here

TOP

Related Classes of Modelo.Cd

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.