Skip to content
Advertisement

Tag: button

how to create a timer minutes by pressing the button? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 9 months ago. Improve this question how to create a timer for 2 minutes by pressing the button? I want to create a button that after pressing this button will unclicable

Android: CalendarView and Button not able to share data

I’m creating an application that lets user to list down school assignment and the deadline. In the OnClickListerner, the “selectedDate” is highlighted as an error. Is there a way to solve the issue? Answer The selectedDate is defined in another scope so it is not visible for OnClickListerner. You can move it to the onCreate method scope.

Cant add to arraylist inside actionevent Buttonclicked

Im kind of new to programming in java but here im trying to figure out how to add the value of a button clicked in ActionEvent. I even changed the actionlistener to MouseListener etc but still not working. It only displays the current button clicked but i would like to add every button clicked into an arraylist. Problem: I cant

How to detect which button was clicked – Java

Problem: below some code to make a frame filled with buttons. After the button is clicked, I would need to know the coordinates of the button clicked. The program will afterwards check the status of that specific tile and depending on the status it should change to a certain color. I’m having some issues when retracting this coordinate, could someone

Advertisement