Guest User

Untitled

a guest
Jul 16th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. @Override
  2.        public Component getTableCellRendererComponent(JTable table,
  3. Object value, boolean isSelected, boolean hasFocus, int row, int
  4. column) {
  5.  
  6.            if (isSelected == true) {
  7.               setColor(Color.tuputitamadre);
  8.            } else if(hasFocus) {
  9.                setColor(Color.tuputitaabuela);
  10.        }
  11.  
  12.        //Nos escuchamos a nosotros mismos por si nos pulsamos en el botón
  13.            addActionListener(new ActionListener() {
  14.                @Override
  15.                public void actionPerformed(ActionEvent evt) {
  16.                      modelo.removeRow(row);
  17.                }
  18.            });
  19.  
  20.            return this;
  21.        }
Add Comment
Please, Sign In to add comment