I have a JTable that stores the results of a database query, so far so good. What I want is for the last column in each table to have a clickible JButton that will open the edit
Take a look at Sun's introduction to the JTable
component, specifically, the section about Editors and Renderers. It discusses the use of alternative CellRenderers, and CellEditors. What you'd need to do is create (or borrow) a ButtonCellRenderer
and a ButtonCellEditor
and then apply them to the column in question in your JTable
. The examples found in the linked articles should give you all the information you need.