本文整理匯總了Java中java.awt.event.KeyEvent.VK_F5屬性的典型用法代碼示例。如果您正苦於以下問題:Java KeyEvent.VK_F5屬性的具體用法?Java KeyEvent.VK_F5怎麽用?Java KeyEvent.VK_F5使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類java.awt.event.KeyEvent
的用法示例。
在下文中一共展示了KeyEvent.VK_F5屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: keyPressed
@Override
public void keyPressed(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_F5) {
proj.getSimulator().requestReset();
proj.getSimulator().setIsRunning(true);
} else if ((e.getKeyCode() == KeyEvent.VK_0 || e.getKeyCode() == KeyEvent.VK_NUMPAD0)
&& e.isControlDown()) {
autoZoomCenter();
} else {
Tool tool = proj.getTool();
if (tool != null)
tool.keyPressed(Canvas.this, e);
}
}
示例2: teclaPressionada
public void teclaPressionada(java.awt.event.KeyEvent evt){
if(evt.getKeyCode() == KeyEvent.VK_F4){
if(!jButtonSalvar.isVisible())
return;
salvar();
}
if(evt.getKeyCode() == KeyEvent.VK_F2){
if(!jButtonIncluir.isVisible())
return;
incluir();
}
if(evt.getKeyCode() == KeyEvent.VK_F5){
if(!jButtonCancelar.isVisible())
return;
cancelar();
}
if(evt.getKeyCode() == KeyEvent.VK_F8){
if(!jButtonExcluir.isVisible())
return;
excluir();
}
if(evt.getKeyCode() == KeyEvent.VK_F6){
if(!jButtonPesquisar.isVisible())
return;
pesquisar();
}
}
示例3: RefreshAnnotationSetsAndFeaturesAction
public RefreshAnnotationSetsAndFeaturesAction() {
super("",MainFrame.getIcon("crystal-clear-action-reload"));
super.putValue(SHORT_DESCRIPTION, "Reloads annotations types.");
// assigning F5 as the short cut key for the refresh button
super.putValue(MNEMONIC_KEY, KeyEvent.VK_F5);
}