|
|
@ -16,8 +16,11 @@ import com.fr.design.i18n.DesignSizeI18nManager; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.collections.CollectionUtils; |
|
|
|
import com.fr.stable.collections.CollectionUtils; |
|
|
|
|
|
|
|
import sun.swing.table.DefaultTableCellHeaderRenderer; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.AbstractCellEditor; |
|
|
|
import javax.swing.AbstractCellEditor; |
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
|
|
|
import javax.swing.JLabel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JTable; |
|
|
|
import javax.swing.JTable; |
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
import javax.swing.SwingUtilities; |
|
|
@ -132,6 +135,16 @@ public class DesensitizationRuleChoosePane extends JPanel { |
|
|
|
this.setDefaultRenderer(DesensitizationRuleStatusPane.class, new DesensitizationRuleStatusPane()); |
|
|
|
this.setDefaultRenderer(DesensitizationRuleStatusPane.class, new DesensitizationRuleStatusPane()); |
|
|
|
this.createTable().getColumnModel().getColumn(0).setMaxWidth(20); |
|
|
|
this.createTable().getColumnModel().getColumn(0).setMaxWidth(20); |
|
|
|
this.createTable().getColumnModel().getColumn(3).setMaxWidth(60); |
|
|
|
this.createTable().getColumnModel().getColumn(3).setMaxWidth(60); |
|
|
|
|
|
|
|
this.createTable().getColumnModel().getColumn(3).setHeaderRenderer(new DefaultTableCellHeaderRenderer() { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { |
|
|
|
|
|
|
|
JLabel headerLabel = new JLabel(value != null ? value.toString() : ""); |
|
|
|
|
|
|
|
headerLabel.setToolTipText((String) value); |
|
|
|
|
|
|
|
headerLabel.setHorizontalAlignment(JLabel.CENTER); |
|
|
|
|
|
|
|
headerLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 3, 0, new Color(216, 216, 216, 175))); |
|
|
|
|
|
|
|
return headerLabel; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|