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 BasicListUI$FocusHandler implements FocusListener {
- // $FF: synthetic field
- private final BasicListUI this$0;
-
- public BasicListUI$FocusHandler(BasicListUI var1) {
- this.this$0 = var1;
- }
-
- public void focusGained(FocusEvent var1) {
- this.repaintCellFocus();
- }
-
- public void focusLost(FocusEvent var1) {
- this.repaintCellFocus();
- }
-
- protected void repaintCellFocus() {
- int var1 = this.this$0.list.getLeadSelectionIndex();
- if (var1 != -1) {
- Rectangle var2 = this.this$0.getCellBounds(this.this$0.list, var1, var1);
- if (var2 != null) {
- this.this$0.list.repaint(var2.x, var2.y, var2.width, var2.height);
- }
- }
-
- }
- }
-