Good I want to delete a JTexfield save that data in my variable num1 and insert another to fill the variable num2. These two will go to a method in the operations class that receives those 2 parameters here part of the code
JButton btnmulti = new JButton("*");
btnmulti.setBounds(10, 132, 49, 46);
contentPane.add(btnmulti);
btnmulti.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if(num1==null){
datos = textField.getText();
num1= Integer.parseInt(datos);
textField.setText(null);
}
if(num2==null){
datos = textField.getText();
num2= Integer.parseInt(datos);
}
Operaciones.multiplicacion(num1, num2);
String res = Integer.toString(Operaciones.multiplicacion(num1, num2));
textField.setText(res);
}
});