ButtonClose.java

1
package com.jsql.view.swing.tab;
2
3
import com.jsql.view.swing.util.UiUtil;
4
5
import javax.swing.*;
6
import java.awt.*;
7
8
public class ButtonClose extends JButton {
9
    
10
    public ButtonClose() {
11
        
12
        super(UiUtil.ICON_CLOSE);
13
        
14
        var closeButtonSize = new Dimension(
15
            UiUtil.ICON_CLOSE.getIconWidth(),
16
            UiUtil.ICON_CLOSE.getIconHeight()
17
        );
18
        
19 1 1. <init> : removed call to com/jsql/view/swing/tab/ButtonClose::setPreferredSize → NO_COVERAGE
        this.setPreferredSize(closeButtonSize);
20
        
21 1 1. <init> : removed call to com/jsql/view/swing/tab/ButtonClose::setContentAreaFilled → NO_COVERAGE
        this.setContentAreaFilled(false);
22 1 1. <init> : removed call to com/jsql/view/swing/tab/ButtonClose::setFocusable → NO_COVERAGE
        this.setFocusable(false);
23 1 1. <init> : removed call to com/jsql/view/swing/tab/ButtonClose::setBorderPainted → NO_COVERAGE
        this.setBorderPainted(false);
24
        
25
        // turn on before rollovers work
26 1 1. <init> : removed call to com/jsql/view/swing/tab/ButtonClose::setRolloverEnabled → NO_COVERAGE
        this.setRolloverEnabled(true);
27 1 1. <init> : removed call to com/jsql/view/swing/tab/ButtonClose::setRolloverIcon → NO_COVERAGE
        this.setRolloverIcon(UiUtil.ICON_CLOSE_ROLLOVER);
28 1 1. <init> : removed call to com/jsql/view/swing/tab/ButtonClose::setPressedIcon → NO_COVERAGE
        this.setPressedIcon(UiUtil.ICON_CLOSE_PRESSED);
29
    }
30
}

Mutations

19

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/tab/ButtonClose::setPreferredSize → NO_COVERAGE

21

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/tab/ButtonClose::setContentAreaFilled → NO_COVERAGE

22

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/tab/ButtonClose::setFocusable → NO_COVERAGE

23

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/tab/ButtonClose::setBorderPainted → NO_COVERAGE

26

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/tab/ButtonClose::setRolloverEnabled → NO_COVERAGE

27

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/tab/ButtonClose::setRolloverIcon → NO_COVERAGE

28

1.1
Location : <init>
Killed by : none
removed call to com/jsql/view/swing/tab/ButtonClose::setPressedIcon → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1