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.
My question is, how am I able to add a JDialog when the user does a double click or presses enter over a row in a JTable, I am looking for a listener that might help me on this but I could not find it ?
What I want is that when the user double clicks or presses enter in the JTable a JDialog appear that will help the user to see the data that is on the Row of the JTable and if it has no user yet the user can insert it in this dialog and the update on the database will be done?
Well your question isn't really adding a JDialog for the table row but a table list selection listener. In my GUI design, when a row is selected, I used the list selection listener to enable my "book" button (disabled by default). The book button is a Swing action rather than an action listener. Once you have that adding the double click or enter to pop up a JDialog shouldn't be that hard I think.