How about an Actionlistener?
ActionListener[
^] @ java Tutorials.
That one can pass a value (figure selected Row of JTable in Listener and pass data as argument to new JFrame)
You can open a second JFrame/JDialog and work there - afterwards return to default JFrame.
this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
Choose wisely which DefaultCloseOperation you want little Hobbit ;)