Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public Component getTableCellRendererComponent(JTable table,
- Object value, boolean isSelected, boolean hasFocus, int row, int
- column) {
- if (isSelected == true) {
- setColor(Color.tuputitamadre);
- } else if(hasFocus) {
- setColor(Color.tuputitaabuela);
- }
- //Nos escuchamos a nosotros mismos por si nos pulsamos en el botón
- addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent evt) {
- modelo.removeRow(row);
- }
- });
- return this;
- }
Add Comment
Please, Sign In to add comment