This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi there, I have a JXTable that contains a column called "Delay". Delay is a Label when it is not edited, and a JTextField upon edition. I have a few lines in my JXTable. When i click on my first Delay cell, i enter a value, then i press Enter and i get the focus on the next JTextField, and all the text is selected to be replaced (with this trick
Problem is, if i press the up arrow key or the down arrow key, the selected cell is the right one, but it is not in mode edition anymore (i.e. the JLabel appears, not the JTextEdit) and the focus is not on the field anymore but on the JXTable. If i start inputing something, it adds to the value already present in the field: ex : if there was 24, i go on this cell from the previous one using Enter, i write 5, at the end i have 5. If i go on this cell from the previous one using the arrows, and i write 5, at the end i get 245. And i want the automatic selection as well for the Up and Down arrow keys cases.