Converting jLabel to a jTextField
===

I'm working on a JFrame interface to interact easily with a large amount of data. The data is saved in a .txt file, and when a name is selected from the jList, my program reads the appropriate lines of data, converts them into an Object I've defined (CounterParty), and displays the appropriate fields of the objects in jLabels. This all works well. I've also written code to launch a new JPanel that edits the selected Object. The JPanel opens, already populated with the data, and when a button is clicked the existing information on the .txt file is deleted and replaced with the new, edited data. This also works well.

However, I would like to make this a bit more user-friendly. I want the jLabels where the information is initially displayed to convert into jTextFields populated with the data from the jLabels when the "Edit" button is clicked. This would remove needing to launch the new JPanel window altogether. I assume is would change the visibility to false of the jLabels and create new jTextField objects. I'm having trouble with this. Can jLabel objects be converted to jTextFields? Can I maybe have both objects in the exact same spot, but alternate visibility? I'm not sure how to go about this.

I'm using netbeans.

Thank you for your help! Let me know if any additional information is needed.