Hey Guys i want to create keyUp and keyDown Events on JTable to get value at particular cell as i press up key and Down Key ,i tried to do it and succeeded in KeyDown Event which is :
ProductTable.addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent k){
ProductTable_KeyPressed(k);
}
});
private void ProductTable_KeyPressed(KeyEvent k)
{
int Row= ProductTable.getSelectedRow();
String ProductName= ProductTable.getValueAt(Row+1,0).toString();
JProduct_name_txt1.setText(ProductName);
}
But Having problem in Making keyup Event....Could any one give Help on This.
I'll be thankful