home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.Rectangle;
- import java.awt.event.FocusEvent;
- import java.awt.event.FocusListener;
-
- public class BasicTableUI$FocusHandler implements FocusListener {
- // $FF: synthetic field
- private final BasicTableUI this$0;
-
- public BasicTableUI$FocusHandler(BasicTableUI var1) {
- this.this$0 = var1;
- }
-
- private void repaintAnchorCell() {
- int var1 = this.this$0.table.getRowCount();
- int var2 = this.this$0.table.getColumnCount();
- int var3 = this.this$0.table.getSelectionModel().getAnchorSelectionIndex();
- int var4 = this.this$0.table.getColumnModel().getSelectionModel().getAnchorSelectionIndex();
- if (var3 >= 0 && var3 < var1 && var4 >= 0 && var4 < var2) {
- Rectangle var5 = this.this$0.table.getCellRect(var3, var4, false);
- this.this$0.table.repaint(var5);
- }
- }
-
- public void focusGained(FocusEvent var1) {
- this.repaintAnchorCell();
- }
-
- public void focusLost(FocusEvent var1) {
- this.repaintAnchorCell();
- }
- }
-