这句话有问题:
frame.setContentPane().add(button);
1 The method setContentPane(Container)
in the type JFrame
is not applicable
for the arguments ()
更改之后,可以了。
frame.getContentPane().add(button);
可是不还是一样吗??
转载于:https://www.cnblogs.com/meihao1989/p/3181468.html