init();
}
public void init() {
Keymap parent = m_TCPane.getActiveTextPane().getKeymap();
Keymap newmap = JTextComponent.addKeymap("KeymapExampleMap", parent);
KeyStroke shiftF5key = KeyStroke.getKeyStroke(KeyEvent.VK_F5, InputEvent.SHIFT_MASK);
newmap.addActionForKeyStroke(shiftF5key, new ShiftF5Action());
KeyStroke F5key = KeyStroke.getKeyStroke(KeyEvent.VK_F5, 0);
newmap.addActionForKeyStroke(F5key, new F5Action());
KeyStroke F6Key = KeyStroke.getKeyStroke(KeyEvent.VK_F6, 0);
newmap.addActionForKeyStroke(F6Key, new F6Action());
KeyStroke F8Key = KeyStroke.getKeyStroke(KeyEvent.VK_F8, 0);
newmap.addActionForKeyStroke(F8Key, new ShiftF5Action());
KeyStroke CTRLF2Key = KeyStroke.getKeyStroke(KeyEvent.VK_F2, InputEvent.CTRL_DOWN_MASK);
newmap.addActionForKeyStroke(CTRLF2Key, new CTRLF2Action());
m_TCPane.getActiveTextPane().setKeymap(newmap);
}