Quitar una fila de un JTable

Para los que preguntaron, ahí esta como quitar una fila de un JTable
public void quitarFila(JTable tabla){
        try {
            modelo=(DefaultTableModel) tabla.getModel();
            modelo.removeRow(tabla.getSelectedRow());
            tabla.addRowSelectionInterval(0,0);
            modelo=null;
        } catch (Exception e) {
            JOptionPane.showMessageDialog(null, "Seleccione la fila que desea quitar.");
        }
    }

2 Comentarios

  1. como elimino multiples filas seleccionaas, osea seleccionesvarias y quiero eliminar filas de un solo evento

    ResponderBorrar
  2. One such bonus was a ten-to-one payout if the player's hand consisted of the ace of spades and a black jack . This hand was referred to as a "blackjack", and the name caught even after the ten-to-one bonus was withdrawn. The most widely played on line casino banking game in the world, it makes use of decks of fifty two cards and descends from a world household of on line casino banking games recognized as|often known as} Twenty-One. This household of card games additionally includes the British game of Pontoon and the European game, Vingt-et-Un. The game is a evaluating card game the place every player competes in opposition to the supplier. Playing online blackjack for real money is legal in New Jersey, Pennsylvania, West 빅카지노 Virginia, Delaware, Michigan, and Nevada.

    ResponderBorrar

Publicar un comentario

Artículo Anterior Artículo Siguiente