I am using JTextField as Component of table cell editor for the table.I want to set foucs to cell if the value of cell is > 1 .User is not allowed to do other functionality until he enters right value and till then foucs should be on that cell only. Please let me know if anyone has solution for it.
posted 10 years ago
Welcome to the Ranch.
I don't think you can set the focus on anything, but most Swing classes have a method allowing them to request the focus. Have a look in the API.
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF