ActionShowSearch.java

1
package com.jsql.view.swing.table;
2
3
import javax.swing.*;
4
import java.awt.event.ActionEvent;
5
6
public class ActionShowSearch extends AbstractAction{
7
    
8
    private final JPanel panelSearch;
9
    private final JTextField textFilter;
10
    
11
    public ActionShowSearch(JPanel panelSearch, JTextField textFilter) {
12
        
13
        this.panelSearch = panelSearch;
14
        this.textFilter = textFilter;
15
    }
16
17
    @Override
18
    public void actionPerformed(ActionEvent e) {
19
        
20 1 1. actionPerformed : removed call to javax/swing/JPanel::setVisible → NO_COVERAGE
        this.panelSearch.setVisible(true);
21
        this.textFilter.requestFocusInWindow();
22
    }
23
}

Mutations

20

1.1
Location : actionPerformed
Killed by : none
removed call to javax/swing/JPanel::setVisible → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1