public void cargarPedidos() {

        String sql = "SELECT t2.idpedidos AS id_pedido , t1.nombres AS clientes, t3.nombre AS empleado, t2.precio_total "
                + "FROM clientes AS t1, pedidos AS t2, empleados AS t3 "
                + "WHERE t1.idclientes = t2.clientes_idclientes "
                + "AND t3.idempleados = t2.empleados_idempleados "
                + "ORDER BY id_pedido";

        try {
            Connection connPed = Conexion.GetConnection();
            PreparedStatement ps = connPed.prepareStatement(sql);
            Pedidos = ps.executeQuery();

            while (Pedidos.next()) {
                String[] row = {Pedidos.getString(1), Pedidos.getString(2), Pedidos.getString(3), Pedidos.getString(4)};
                tmPed.addRow(row);
            }
            jTablePedidos.setModel(tmPed);
        } catch (SQLException ex) {
            Logger.getLogger(PanelPedidos.class.getName()).log(Level.SEVERE, null, ex);
        }

    }