/[classpath]/classpath/javax/swing/plaf/basic/BasicTableUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicTableUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by abalkiss, Fri Aug 12 20:45:17 2005 UTC revision 1.22 by abalkiss, Mon Aug 15 19:50:38 2005 UTC
# Line 279  public class BasicTableUI Line 279  public class BasicTableUI
279          table.registerKeyboardAction(action,(String)ancestorMap.get((KeyStroke)keys[i]),          table.registerKeyboardAction(action,(String)ancestorMap.get((KeyStroke)keys[i]),
280                                       KeyStroke.getKeyStroke                                       KeyStroke.getKeyStroke
281                                       (((KeyStroke)keys[i]).getKeyCode(), convertModifiers(((KeyStroke)keys[i]).getModifiers())),                                       (((KeyStroke)keys[i]).getKeyCode(), convertModifiers(((KeyStroke)keys[i]).getModifiers())),
282                                       JComponent.WHEN_FOCUSED);                                       JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
283    
284          table.registerKeyboardAction(action,(String)ancestorMap.get((KeyStroke)keys[i]),          table.registerKeyboardAction(action,(String)ancestorMap.get((KeyStroke)keys[i]),
285                                       KeyStroke.getKeyStroke                                       KeyStroke.getKeyStroke
286                                       (((KeyStroke)keys[i]).getKeyCode(), ((KeyStroke)keys[i]).getModifiers()),                                       (((KeyStroke)keys[i]).getKeyCode(), ((KeyStroke)keys[i]).getModifiers()),
287                                       JComponent.WHEN_FOCUSED);                                       JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
288        }        }
289    }    }
290    
# Line 519  public class BasicTableUI Line 519  public class BasicTableUI
519                                       colModel, colMinSelected, colMaxSelected,                                       colModel, colMinSelected, colMaxSelected,
520                                       (e.getActionCommand().equals                                       (e.getActionCommand().equals
521                                        ("selectPreviousRowCell")), false);                                        ("selectPreviousRowCell")), false);
             
           table.repaint();  
522          }          }
523        else if (e.getActionCommand().equals("selectNextColumn"))        else if (e.getActionCommand().equals("selectNextColumn"))
524          {          {
# Line 608  public class BasicTableUI Line 606  public class BasicTableUI
606            // to a keyboard input but we either want to ignore that input            // to a keyboard input but we either want to ignore that input
607            // or we just haven't implemented its action yet.            // or we just haven't implemented its action yet.
608          }          }
609    
610          if (table.isEditing() && e.getActionCommand() != "startEditing")
611            table.editingCanceled(new ChangeEvent("update"));
612          table.repaint();
613                
614        table.scrollRectToVisible        table.scrollRectToVisible
615          (table.getCellRect(rowModel.getLeadSelectionIndex(),          (table.getCellRect(rowModel.getLeadSelectionIndex(),

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26