В моем методе actionPerformed я вызываю «copy()», который клонирует объекты, но компилятор дает мне эту ошибку: «java.awt.event.ActionListener; переопределенный метод не бросает java.lang.CloneNotSupportedException ", что я могу сделать?CloneNotSupportedException в actionPerformed
public void actionPerformed(ActionEvent e){
if (e.getSource() instanceof JButton) {
copy(); ...
Спасибо