The problem is solved during the day, just because of your own accident, actually define the JFilechooser component inside the program, just NetBeans don't know why it does not automatically import javax.swing. * Package when generating a JFrame, can only add itself. Today, I wrote a notebook program, familiar with the reading and writing operations of the text, but I still don't know how to capture the text in the launch program, I hope that the master can give pointers. Continue to learn Java ........