botao.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
jlabel.setText(Integer.parseInt(jlabel.getText()) + 1);
}
} );
I’m not sure if this function is correct as I haven’t opened the IDE for Ester.
However, it is not difficult to do what you want, pass the function to it to execute when you press a similar button in the example above. within the function is only to give a setText on that jlabel of yours, passing the text of it not forgetting to convert to integer and incrementing 1. ready :)
I haven’t been able to yet. I actually know that the concept is very simple, but the practice is being very complicated. I already managed to make a list with Abstracttabelmodel and fields for registration, all complete, but change an element through a button ta being very difficult
– Lucas