这句话有问题:
frame.setContentPane().add(button);
1 The method setContentPane(Container) in the type JFrame is not applicable for the arguments ()
更改之后,可以了。
frame.getContentPane().add(button);
可是不还是一样吗??
这句话有问题:
frame.setContentPane().add(button);
1 The method setContentPane(Container) in the type JFrame is not applicable for the arguments ()
更改之后,可以了。
frame.getContentPane().add(button);
可是不还是一样吗??