Most voted "javafx" questions
Javafx is a software platform aimed at developing and delivering desktop applications, as well as Rich Internet Applications (Rias) that can run on a wide variety of devices.
Learn more…299 questions
Sort by count of
-
0
votes1
answer318
viewsGrab text from Scene Builder to create account screen
How to get text from FXML file? field of the FXML file: <TextField fx:id="usernameSU" GridPane.columnIndex="1" /> controller file: public class signUpController implements Initializable {…
-
0
votes1
answer243
viewsFieldset in Javafx
Good morning guys, someone can tell me how to implement Fieldset in Javafx. There is no such object in Scene Builder.
-
0
votes2
answers588
viewsLoad table view with Observablelist
I’m trying to load a table view with the result of a query. The result of the query is sent to an Observablelist which is then called in the controller. I do not get any error but it also does not…
-
0
votes1
answer474
viewsJavafx 8: Updating the Tableview after closing the window
I have a rating registration screen and a rating management screen from a library system. After registering a new rating, I would like the Tableview ratings, on the management screen, to be updated…
-
0
votes1
answer143
viewsProblems acquiring data from a Javafx Label
Good afternoon, I’m starting a simple example for data acquisition of a Label in Javafx, but I’m having difficulties, most of the sources told me to perform as follows: public class MainApp extends…
-
0
votes1
answer1113
views -
0
votes0
answers188
viewsOrder of Listeners Events
I have a tableView with a Listener when selecting a new table view row, and I have a textfield that receives a value from one of the tableView columns; textfield has a listener when losing the focus…
-
0
votes1
answer345
viewsJava - Change XML and then read
I have an application that writes in an XML and one that reads, the two work well separately, but the problem is that when I write in XML, the other application keeps reading without updating the…
-
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
answer77
viewsTransform Curl http://IP:PORT/sendLocalEvent? eventName=_event into Javafx
I would like to make an app in javafx , when you press a button sends a command like: curl http://IP:PORTA/sendLocalEvent?eventName=_evento to a server on the same network to start the _event event.…
-
0
votes1
answer93
viewsString Handling - Javafx Application
I’m having a problem I’m reading a file and I need to remove the accents of the string, however, the function is not working in my Javafx application. Function: public static String remove(String…
-
0
votes1
answer631
viewsTabpane: How to change Tab by clicking the Javafx button
I don’t know if I’m in the right place but go anyway, guys I started learning Javafx a little while ago and have a doubt, I was wondering how I can change Tab when I click the example button: I have…
-
0
votes0
answers362
viewsHow 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…
-
0
votes1
answer56
viewsexception of reflect.Invocationtargetexception
hello, I’m trying to make an application that runs a song endlessly, but when the user clicks a button the music stops , that is my code public void tocar() { relogio = new Timeline(new…
-
0
votes1
answer111
viewsHow to select multiple checkBoxs?
I have a loop for, in which I create a new checkBox every time it goes through the/loop routine. I am adding these "checks" inside an item of a treeTableView. I wanted to know, how could I mark all…
-
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
votes1
answer152
viewsClean components within a tab
I have a method that cleans my components, however, it cannot clean the components that are inside a Tab. I was trying to apply it this way: if (fieldValue instanceof Tab) { for (Tab tab : ((Tab)…
-
0
votes1
answer191
viewsHow to run event without initially clicking on radio button?
How do I make a selection event from radioButton be started by default ? I determined that mine radios buttons will call some methods when selected, I did within the initialize, however, the way…
-
0
votes1
answer898
viewsCreate a Java WEB application that also runs via desktop
Good night to you all. I’m thinking of developing an application with the following features: Backend: Java Frontend(Option 1): Javafx Frontend(Option 2): HTML5 + CSS3 I want to start the right way,…
-
0
votes1
answer1624
viewsHow to create a Javafx Window without the three standard buttons (Minimize, Maximize and Close)?
It’s basically what this question, I wanted a screen without these 3 buttons,let’s say that without that border that comes standard in basically all windows that opens, and that comes with these 3…
-
0
votes0
answers35
viewsHow 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…
-
0
votes1
answer1355
viewsMDI Javafx Window: how to make an Anchorpane responsive to Anchorpane Parent
I want to know how to make my Anchorpane internal responsive example: i have a main screen and on this main screen has a configuration button. When I click this button, opens another Anchorpane…
-
0
votes1
answer420
viewsHow do I add a pane inside another pane via code like javafx?
I already know how to do that when it comes to a AnchorPane, is something like this: AnchorPane ap = new AnchoPane(); Label lbl = new Label("Qualquer"); ap.getChildren().add(lbl); But when it comes…
-
0
votes0
answers150
viewsHow do I change the background color of a Jfoenix Combobox item?
I’m having trouble with colors in Jfoenix. My program has this yellow, gray and white palette, but all objects are in blue. Like the items in this combobox: I tried to add this to the archive…
-
0
votes1
answer1243
viewsJava Webview how to use
How do I use the webview when I use: public void site(){ WebView browser = new WebView(); WebEngine webEngine = browser.getEngine(); webEngine.load("http://mySite.com"); } I have the error:…
-
0
votes1
answer80
viewsError while running void start()
Good, I was doing some coding of the proposed exercises. When I went to execute the following error: java.lang.IllegalStateException: Toolkit not initialized at…
-
0
votes1
answer54
viewsProblem starting Javafx application
Hello, I’m trying to create a simple application in Javafx, everything was working until suddenly started giving problem when trying to start the program. You’re making the following exception:…
-
0
votes0
answers45
viewsMenu Firefox Javafx
Good afternoon, could someone provide me an idea how to create this Javafx menu ?…
-
0
votes0
answers116
viewsHow to show the progress of a Progressbar in S.O.’s Taskbar?
I’m using a javafx.scene.control.ProgressBar and a javafx.scene.control.ProgressIndicator, and would like to know if it is possible (and how to do) to be shown the progress in the Taskbar of the…
-
0
votes0
answers43
viewsProblem with Javafx on Linux
Javafx Alert on Linux. I am testing the Javafx technology, but I have noticed some things that work well in windows but not in Linux. For example, the class javafx.scene.control.Alert, to display…
-
0
votes0
answers16
viewsJavafxml application with datepicker, insert value in BD
I have to enter the value of a datepicker that comes in DD-MM-YYYY format in the database and when I run the application I get this error: "com.microsoft.sqlserver.jdbc.Sqlserverexception: Operand…
-
0
votes1
answer194
viewsNavigation between screens (Javafx)
I have a schedule program and on the main screen I have the option to Add Contact. When it is clicked a new screen is opened so that it can enter the data. When the Save button of this second screen…
-
0
votes1
answer388
viewsFill label automatically when Stage opens - Javafx
I need a label receive a text automatically as soon as the stage started without having to click a button. As different texts are saved in a database, I need them to be loaded in the label when the…
-
0
votes0
answers48
viewsI need to open the first link of a youtube search in a webview
The webview will not be visible, so the goal is to automatically open the first video of the search. I believe it is not too complicated in JS. code: public class FXMLDocumentController implements…
-
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
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
votes1
answer544
viewsWhat’s the Actionlistener for?
I’m starting to study Java. Can someone explain to me, in detail, in the most complete and simple way possible, what good is the method actionListener java (da lib swing). 'Cause I’m having a little…
-
0
votes1
answer481
viewsHow to create an event for a button in Swing/Java
Guys, I wanted to ask a favor, I wanted someone to show me how to create an event of a Jbutton, like, a q button when you click on it it opens another Jframe and closes the old one use this code as…
-
0
votes1
answer101
viewsHow to apply a "Blur" effect when a Stagemodal overlaps an already opened Stage in Javafx
Well my doubt is the following, I would like to apply an effect in which, when I open a new window, the window that was superimposed is blurred I tried to use public Stage stageModal(String…
-
0
votes1
answer113
viewsJavafx application with icone on the Tray system
I am creating a Javafx application to perform queries in a database and save XML files. The application will run full-time on the machine that is in operation. The application has a visual interface…
-
0
votes0
answers80
viewsProblems to the popular Tableview
Good morning! When I run the code my Tableview pulls 2 blank lines. I am not able to show the inforamations in table view. Follow code below: Controller: package br.com.unitymanager.controller;…
-
0
votes0
answers217
viewsInstallation Issues with Netbeans and Javafx on Ubuntu 16.04
I am trying to continue a project (javafx) after formatting my machine with Ubuntu 16.04 linux. I installed the default-jdk from the terminal before installing the full netbeans 8.2 downloaded right…
-
0
votes2
answers70
viewsFile still in use by Java / How to close file connection
Problem: Code to demonstrate the problem: import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.util.logging.Level; import java.util.logging.Logger;…
-
0
votes0
answers148
viewsSwing integrated with Javafx is possible?
I wanted to know if it is possible to call a Javafx screen through a Swing screen button. The code of the Javafx screen I want to call is the following: public class EditorHTML extends Application {…
-
0
votes1
answer955
views"Location is not set" Javafx
I’ve been studying javafx recently and got caught up in writing a very simple code to open a file. fxml, follows the code and error respectively, searched the internet and already tried the solution…
-
0
votes1
answer361
viewsJava FX - Threading Issues
Good morning, I would like to sanction a question that is disturbing me, as I do to edit a Label from a Thread using a button? Whenever I run the code I get an error, but if I run this same code…
-
0
votes1
answer150
viewsGenerate file . jar in Eclipse with Maven, application connects to Mysql
I am using Eclipse and have an application made using Maven that connects to the Mysql database. I can generate the file .jar, but when I run, it simply hangs on the login screen, it doesn’t seem to…
-
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
votes0
answers106
viewsJava CRUD problem using Mysql
In my DAO class, I have the method to enter in the database, but in my system screen I can only update the fields if I make a change in all fields. Example: my table has 4 fields and I only modify…
-
0
votes1
answer51
viewsLeave a field of Bordepane transparent Javafx
Good morning, I’m trying to make only one of the components of a Borderpane look transparent. In this case I used . opacity, however it was in Stage. Code I created: @Override public void…