Revision 43891 branches/org.gvsig.desktop-2018a/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/fmap/dal/serverexplorer/filesystem/swing/TiledCellRenderer.java

View differences:

TiledCellRenderer.java
41 41
     */
42 42
    private static final long serialVersionUID = 3875203211014535067L;
43 43

  
44
    private JCheckBox checkBox;
44
    private final JCheckBox checkBox;
45 45

  
46 46
    /**
47 47
     *
......
54 54
        add(checkBox, BorderLayout.CENTER);
55 55
    }
56 56

  
57
    @Override
57 58
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
58 59
        int row, int column) {
59 60
        if (isSelected) {
......
68 69
            setBackground(table.getBackground());
69 70
        }
70 71

  
71
        boolean booleanValue = ((Boolean) value).booleanValue();
72
        boolean booleanValue = ((Boolean) value);
72 73
        boolean cellEditable = table.getModel().isCellEditable(row, column);
73 74
        if(!cellEditable && !booleanValue){
74 75
            checkBox.setVisible(false);

Also available in: Unified diff