All Questions
Tagged with eventhandler java
96
questions
-2
votes
1
answer
129
views
JavaFX: Help setting event listeners to set variables and print text? [closed]
I am writing a program that is a "sandwich ordering app". Think subway. Bread choice, meat choice, cheese choice, etc. I'm trying to use each type of element (radio buttons, combobox, slider,...
0
votes
0
answers
59
views
Trying to pull an image from an ArrayList and assigning a value
I am creating a matching card game and am trying to assign a value to the cards themselves so that way when they are pulled into the eventhandler I can compare their value to another card that has ...
0
votes
0
answers
281
views
EventHandlers, ActionListeners, and buttons. How to register a Handler on three buttons?
I don't think the rest of the code is needed but if I'm missing something let me know. I don't know what it wants me to do but the instructions provided to me by my professor isn't very clear to me.
...
0
votes
0
answers
24
views
How to access a non-FXML attribute inside an EventHandler?
Suppose we have the following constructor of a simple JavaFX project:
public class FXMLController{
private Model model;
@FXML private Button button;
public void ...
0
votes
1
answer
114
views
Measure runtime of a method handled by bukkit.event.Listener
I need to accurately measure in ms (#.### ms), exactly how long a void method takes to run, without the measurement impacting the results.
Normally I would simply do something like:
long startTime = ...
0
votes
1
answer
701
views
How do you create a custom event handler in Java? [closed]
For the past few days, I've been trying to figure out how to create my own event in Java. I want to be able to use it like this:
public class main {
public void onTimeChange(MinuteChangeEvent ...
0
votes
1
answer
73
views
Application will not display when JavaFX code is ran
I'm working on a very small, brief application to calculate charges for an upcoming conference. The app displayed fine when I ran the code until I added my event handler. Everything seems to be in ...
3
votes
1
answer
662
views
Javafx one eventhandler to catch them all?
I am playing around with javafx and am trying to add an EventHandler or EventFilter (not totally sure what the difference is right now) to one of my scenes. It should just detect any input, from mouse ...
-2
votes
1
answer
101
views
How to make EvenHandler work properly in JavaFX?
I re-arranged my question so it would be easier.
This code should generate Window and I need console output on press of keyboard.
Window appears but my EventHandlers doesn't works.
import javax....
0
votes
1
answer
899
views
About PauseTransition in javafx
I created a VBox (root) and added some Button in it. When I click the button with text "Click" (button_to_click), ten other button (an button array with ten elements) will change background color into ...
0
votes
0
answers
832
views
Why javafx application is crashing while using EventHandler and java.net socket at the same time?
I'm trying to build some Chatting Application with Javafx and java.net networking package. I want the text the User typed in the textfield to be send from the client to the server and from there back ...
0
votes
2
answers
166
views
How to pass TextField info to handle() method
Beginner question: The last part of my assignment is to change the handle() method so when the button is clicked, it returns the result for a miles per gallon calculator. How do I get the user input ...
0
votes
2
answers
88
views
Is there any way to create more clarity in my JavaFX code? [closed]
I'm in the first year of my computer science study, and I just got my first project in which I have to create an application that can perform CRUD operations on an SQL database. This application needs ...
0
votes
1
answer
44
views
Is there an event handler on android platform that replaces a physical button press?
Is there anything in android which could replace a physical press button with software, so it does the job of pressing the physical phone's button automatically? And could it also turn off after some ...
2
votes
1
answer
786
views
Axon - Event Handler Interceptor configuration
I'm trying to define my "Event Handler Interceptor",
I followed the instruction on the official documentation here, but I get the following error:
org.springframework.beans.factory....