Friday, July 19, 2002 02:01 AM
If you want to allow multiple pop ups, max one per record then you may have to maintain (row no. - JFrame object) pairs in some collection. Every time a user clicks a record, check the collection to see if an entry for that particular rows exists in the collection. If it does, use the associated JFrame to show the data. If not, create a new JFrame, put an entry in the collection for that row and the new frame, show the data in the new frame.
If you want to limit the pop ups to one - max. one pop up open at any time:
make the JFrame object as a member. Before opening up the JFrame, check if it is already open. If not, open it. If it is open, populate it with the reqd. data.