| 808 | | |
| | 808 | |
| | 809 | // Open edit dialog whe enter pressed in tables |
| | 810 | propertyTable.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT) |
| | 811 | .put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),"onTableEnter"); |
| | 812 | propertyTable.getActionMap().put("onTableEnter",editAction); |
| | 813 | membershipTable.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT) |
| | 814 | .put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),"onTableEnter"); |
| | 815 | membershipTable.getActionMap().put("onTableEnter",editAction); |
| | 816 | |
| | 817 | // Open add property dialog when INS is pressed in tables |
| | 818 | propertyTable.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT) |
| | 819 | .put(KeyStroke.getKeyStroke(KeyEvent.VK_INSERT, 0),"onTableInsert"); |
| | 820 | propertyTable.getActionMap().put("onTableInsert",addAction); |
| | 821 | |