I would like to be able to copy text from the JTextField in the bottom JPanel where you see the JButton "Rechercher" which is a separate (the JPanel) class from the JInternalFrame in which you see the JTable. Does anyone know whether I need to place the line of code below in both classes or just one.