The two listeners are doing a same job. Is there anyway to simplify these two listener?
Chinese Java Faq Forum
Code:
aTable.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent e) {
readTableLink();
}
});
aTable.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent e) {
readTableLink();
}
});
Chinese Java Faq Forum