doAddGPSHandler();
// If we use m_table the shortcut will appear in the tooltips !?!
m_imgScrollPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_F4, 0), "slideshow_startstop");
m_imgScrollPane.getActionMap().put("slideshow_startstop", new AbstractAction()
{
public void actionPerformed(ActionEvent event)
{
doStartStopSlideShow();
}
});
m_imgScrollPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0), "slideshow_pause");
m_imgScrollPane.getActionMap().put("slideshow_pause", new AbstractAction()
{
public void actionPerformed(ActionEvent event)
{
doSlideShowPause();
}
});
// If we use m_table the shortcut will appear in the tooltips !?!
m_imgScrollPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0), "del");
m_imgScrollPane.getActionMap().put("del", new AbstractAction()
{
public void actionPerformed(ActionEvent event)
{
doDel(-1);
}
});
m_imgScrollPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_R, InputEvent.CTRL_DOWN_MASK), "ctrl_r");
m_imgScrollPane.getActionMap().put("ctrl_r", new AbstractAction()
{
public void actionPerformed(ActionEvent event)
{
doRename();
}
});
m_imgScrollPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_P, InputEvent.CTRL_DOWN_MASK), "ctrl_p");
m_imgScrollPane.getActionMap().put("ctrl_p", new AbstractAction()
{
public void actionPerformed(ActionEvent event)
{
doCopy(-1, false);
}
});
m_imgScrollPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_M, InputEvent.CTRL_DOWN_MASK), "ctrl_m");
m_imgScrollPane.getActionMap().put("ctrl_m", new AbstractAction()
{
public void actionPerformed(ActionEvent event)
{
doMove();
}
});
m_imgScrollPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "down");
m_imgScrollPane.getActionMap().put("down", new AbstractAction()
{
public void actionPerformed(ActionEvent event)
{
int index;
if ((index = m_table.getSelectedRow()) >= 0 && m_table.getRowCount() < index+1)