TextTest3 本来就是继承自JFrame,
所以没有必要再重新定义一个public static JFrame frame;解决:
1.注释掉这句public static JFrame frame;
2.frame.setJMenuBar