Posts by Eduardo Toffolo • 69 points
6 posts
-
0
votes0
answers35
viewsQ: How to invoke an event treatment?
The idea is simple: I have an object like Node and would like to invoke the treatment of the event Keyevent. The treatment is not I who create, so I see no alternative but to make the invocation. I…
-
1
votes1
answer251
viewsQ: How to know if the cursor is on a certain component in javafx
I have a component in javafx and would like to know if the cursor is positioned on it. There is a function for this? I tried to create a boolean that stores it using the events setOnMouseEntered and…
-
0
votes0
answers362
viewsQ: How to change the default size of an icon?
Is there any way to change the default size of a javafx application icon? I have an image that I intend to use as an application icon, but it turns out to be too small both in the upper left corner…
-
2
votes1
answer152
viewsQ: How to insert link in Menubar?
I have a window in a MenuBar with some Menu’s (such as Archive, View, Community and etc) and would like to add one last element to the MenuBar where, when clicked, it would open a window on a…
javafxasked Eduardo Toffolo 69 -
3
votes1
answer370
viewsQ: Focus event in fxml
In the fxml file of a GUI we can direct the code to a method when a particular event occurs. For action events, it would be something like this: <Button fx:id="btn1" onAction="#actionPause" />…
-
0
votes2
answers854
viewsQ: Imageview inside Hbox in FXML file
I’m trying to insert an image into a HBox through a ImageView but I’m not getting it. Fxml code: <?xml version="1.0" encoding="UTF-8"?> <?import java.lang.*?> <?import…