我一个工程里有两个java文件,分别是test1.java和test2.java。test1.java中有一个JFrame和一个JButton,test2.java中只有一个JFrame。请问:怎么在test1.java中按下JButton,test2.java中的JFrame就显示出来?