I have a question like they would do to use a matrix in several classes, my problem is that I have to create buttons in java but inside them I can not create methods.
modificacion_Usuario.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
//aqui trabajaria la matriz, pero no me deja llamar metodos.
}
});