Most voted "fxml" questions
19 questions
Sort by count of
-
3
votes1
answer370
viewsFocus 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" />…
-
3
votes2
answers112
viewsGrab Scrollpane size when set by anchoring - Javafx
I have a Scrollpane anchored on the 4 sides of an Anchorpane so that when resizing the screen, the scroll also resizes. So I don’t need to specify a fixed size. Until then it works as I want. The…
-
1
votes1
answer294
viewsJavafx Pagination
I was playing with Javafx and stopped when I wanted to add paging to my small application. I have a listview filled (as can be seen in the image), when I click on an item, its information is shown…
-
1
votes1
answer243
viewsFailed to customize javafx tab, top panel border does not appear
I would like the Tabpanel area that has no tab to have a border according to the image below. Currently my Tabpanel is like this, no right edge of "Enter" I would like it to be like this, but I do…
-
1
votes1
answer1024
viewsChange Icone Javafx
I’m trying to change the icon but I’m not getting it. Code: package olamundojavafx; import com.sun.javafx.scene.SceneHelper; import javafx.application.Application; import javafx.fxml.FXMLLoader;…
-
1
votes0
answers498
viewsHow to call another screen through the Menuitem
I’m trying to call another screen (include) through a Menuitem, but it’s not working. At first, I can call my Login screen from Main.java, then tbm can log in and call the Menu screen via a button.…
-
1
votes0
answers114
viewsError calling Java Fx screens in Spring
I am developing a Spring + Java Fx application, when calling the code from the main class screen, it works normally, but if I call another screen, it does not record the information in the model and…
-
1
votes1
answer91
viewsFXML Loader error
The goal in the code was that by clicking the + button would be shown the screen of the Establishment that is in the file Telaesbelecimento.fxml but errors are occurring. SCREEN CODE CONSULT import…
-
0
votes1
answer94
viewsCreate a triangular-tipped Listview in Javafx application
I am developing a Javafx application, and I want to make a menu from a Listview, which will be triggered from a button pressed, but I would like to put a triangular tip at the top of this menu as…
-
0
votes1
answer460
viewsLabel update in loop
How do I update a label in a loop in the tab FXMLDocumentController? The Abels only update after it completes the entire loop and then plays the last info on the screen; package musicaisfx; import…
-
0
votes1
answer1113
views -
0
votes2
answers854
viewsImageview 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…
-
0
votes0
answers28
viewsPadding an X panel when adding class in a Y panel (both from the same parent panel)
Good night my people, I have a screen where I have a sidebar on the left side. When I define it with the CSS class. modoCompact it gets 50 pixels wide, adjusting the buttons and layout. When I put…
-
0
votes0
answers21
viewsMultiple FXML within the same Javafx scene
I have the following scene at Javafx: I want the user to click on the buttons "Customers", "Products" or "Suppliers", open the FXML corresponding to each of these buttons that I will create in other…
-
0
votes1
answer148
viewsInsert FXML into Scroll Pane and pass data to controller
My system consists of a main screen, which has a scroll-pane that I’m populating with a list of other FXML scenes, code from which I took an example on the internet, follows the code: @FXML private…
-
0
votes1
answer164
viewsJavafx textfield settext does not work
I have a registration screen, using FXML, and want to reuse this screen for the change button. But when I do: txtNome.setText("ola"); System.out.println(txtNome.getText()); Opens the registration…
-
0
votes1
answer144
viewsPointing to an FXML file in javafx
I created a project from scratch, was without any folder and opened the window perfectly, but when I put inside 7 folders and then started not to load. Does anyone know how I would point? I’m using…
-
-1
votes1
answer63
viewsError changing label - Javafx
I’m trying to change a label lbl1 by the FXML controller builder method. public class TestController extends Application { @FXML private Label lbl1; public TestController() { lbl1.setText("Teste");…
-
-3
votes1
answer195
viewsCall a new screen using a button (Scene Builder, Javafx)
I created two screens, one main and one that I intend to call using a button, as it would be the appropriate method to call this secondary screen?