Jython Swing Table
<p>I'm very new to Python, Jython and Swing.  I'm writing a procedure, in Jython, to display a table of financial items. I need to know which row has been selected so that a second window can be opened in order to edit those details.</p>

<p>I've searched and am confused as to what to do next. This is the code I've written in order to show the table:</p>

<pre><code>from java.awt import *
from javax.swing.table import DefaultTableModel
from javax.swing import ListSelectionModel as LSM
from javax.swing import JFrame
from javax.swing import JTable
from javax.swing import JScrollPane

class MDTable(DefaultTableModel):
    def __init__(self, data, headings) :
        DefaultTableModel.__init__(self, data, headings)

    def isCellEditable(self, row, col) :
        return 0

class ReminderTable:
    def __init__(self, tabledata):

        frame = JFrame("Reminders")
        frame.setSize(1500, 1000)

        colnames = ('Start Date', 'Description', 'Last Paid', 'Next Due', 'Frequency', 'Amount', 'From Account', 'To Account' )

        self.table = JTable(MDTable(tabledata, colnames))

        self.table.selectionMode = LSM.SINGLE_SELECTION
        self.table.getTableHeader().setReorderingAllowed(0)

        scrollpane = JScrollPane()
        scrollpane.setViewportView(self.table)

        frame.add(scrollpane)
        frame.setVisible(True)
</code></pre>

<p>What do I need to add in order to discover which row has been (double) clicked?</p>