1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| mRatio.addKeyListener( new KeyListener() {
public void keyTyped(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_TAB) {
JOptionPane.showMessageDialog(null, "tt" + KeyEvent.VK_TAB);
GenererGraphe();
}
}
public void keyPressed(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_TAB) {
JOptionPane.showMessageDialog(null, "pp" + KeyEvent.VK_TAB);
GenererGraphe();
}
}
public void keyReleased(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_TAB) {
JOptionPane.showMessageDialog(null, "rr" + KeyEvent.VK_TAB);
GenererGraphe();
}
}
}); |
Partager