Most voted "actionlistener" questions
Actionlistener is an interface belonging to the Java awt package to take action events from components used for GUI creation.
Learn more…6 questions
Sort by count of
-
5
votes1
answer384
viewsProblem with Java timer
Explanation: I have a component JTextField that would be a regressive counter, but when I use the ActionListener in this way: public static ActionListener alredBGolem = new ActionListener() { public…
-
3
votes1
answer125
viewsActionlistener does not identify the recovered button
My goal is to click the button Andar and then select on the board which direction the character will be moved to, as shown in the image: My button Andar has a ActionListener and is treated as…
-
2
votes1
answer96
viewsFix Jbutton that is running 2 events
I have an application where in a Jframe I create new records for mysql table, and in another I return a select JTable with all records created. I have a change button, which when I select a Jtable…
-
0
votes1
answer221
viewsProblems accessing class attributes when creating java-based System action
Well I have a class that extends a JPanel, in that JPanel i add a JButton and use the method addActionListener to set a ActionListener for this one JButton, but when I’m creating the ActionListener…
-
0
votes0
answers46
viewsOne actionListener for several Jbuttons and several Jlabel
I wonder if there is a way to reuse a code for several jbuttons by changing the text of several Abels. here is part of the code: petrificarSetaEsquerda = new JButton("");…
-
0
votes1
answer366
viewsHow to differentiate buttons within the same event?
I would like to know a method to differentiate a button that generated event, in my method that will treat the events. In the example below I add the same class that handles the events to 2 buttons,…