Package modelos

Examples of modelos.ProductoDao


        setVisible(true);
    }
    public void llenarTabla(){
        DefaultTableModel dtm= new DefaultTableModel();

        ProductoDao prod = new ProductoDao();
        List<Producto> productos = prod.obtenerProductos();
//        Object[][] cellData = { { "1-1", "1-2" }, { "2-1", "2-2" } };
        Object [] data = new Object[2];
        String[] columnNames = {"Nombre", "Fecha"};
        dtm.addColumn("Nombre");
        dtm.addColumn("Fecha");
View Full Code Here


        botonGuardar.setText("Guardar");
        botonGuardar.setBounds(70, 65, 200, 20);
        botonGuardar.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent ev){
                System.out.println("El texto introducido es:"+textNombre.getText());
                ProductoDao prodao = new ProductoDao();
                Producto p = new Producto(textNombre.getText(), calendar2.getDate());
                prodao.guardarProducto(p);
                repaint();
            }
        });
        add(botonGuardar);
        //panel.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
View Full Code Here

TOP

Related Classes of modelos.ProductoDao

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.