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
-
2
votes1
answer74
viewsAccess a method that is outside the thread
I have a video running in my application and a Thread running a Socket(server), all within the same class, but I need this Thread to access a method that is outside of it. To be more exact I want to…
-
2
votes1
answer1312
viewsPass variable between javafx windows
I’m passing a variable from window "A" to window "B". So far so good. The problem starts when in the "B" window I try to access the variable when the window starts. The value passed does not exist.…
-
2
votes1
answer152
viewsHow 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 7 years, 6 months ago Eduardo Toffolo 69 -
2
votes1
answer51
viewsHow to catch serial fields with Javafx reflecition API?
I have a form with several Checkboxs, which I named C1, C2, C3, C4, C5...until C66. So: @FXML private CheckBox c1; @FXML private CheckBox c2; . . . @FXML private CheckBox c66; Now I want to do an…
-
2
votes1
answer268
viewsHow to increase the number of decimals after the comma?
How can I make the field display 0.0000 for example ? By default it only arrow 2 houses, I’m not able to increase. Example: import javafx.beans.value.ChangeListener; import…
-
2
votes1
answer1118
viewsOpen new window from button
I want to create a new window when the user clicks on a particular button, while that new window is open, the main window cannot be used. How can I do this in JAVAFX? I thought to make the following…
-
2
votes1
answer364
viewsProblem Keypressed Javafx
I wanted to fire an event by pressing the F12 button, but I’m not able to make it fire any action even having created it in code. Here is an example below. F12.setOnKeyPressed(event -> {…
-
2
votes1
answer250
viewsMatching of combobox contents
How to make the options of the comboBox, correspond to numerical indexes? Example, in my bank I save only numbers from 1 to 8. And in the application I show my user names, I want these names to…
-
2
votes1
answer110
viewsHow to modify phone field?
I have a stylized component with phone formatting as follows (XX)XXXXX-XXXX I’d like to know, how can I withdraw the DD part (XX), so that the field stays just like this: XXXXX-XXXX I tried to…
-
2
votes1
answer298
viewsProblem with Keypressed Event to open another JAVAFX window
My problem is the following, this way that I am opening the window I have a problem about using the Keypressed function.Because this way my method needs the Actionevent parameter that when using the…
-
2
votes1
answer174
viewsJava window size
When I open the project in Javafx in Windows OS, it opens right, but when I open the same project in Mac Retina, it opens with another dimension, the windows are all misaligned and I have to fix in…
-
2
votes2
answers435
viewsJfoenix library does not list Jfxbuttons after added
I have a problem, and I’m here to see if anyone can help me solve it. I installed the Jfoenix library in my Scenebuilder to work alongside the Netbeans IDE but after the library is imported into…
javafxasked 7 years, 3 months ago Igor Freitas 61 -
2
votes2
answers1029
viewsMethod to change CSS subclass (choicebox item text color)
I have a Choice-box. In my Choice-box there is a list of colors to be selected by the user through the interface. Every time the user selects a color, the background of that same Color Box gets the…
-
2
votes1
answer1609
viewsClose ok button in popup with Selenium Driver
I am developing a test tool using Java driver Selenium. The portal I’m testing presents a pop-up or a dialog box, where it has an OK button. My tool needs to press. clik() on this button,I cannot…
-
2
votes1
answer209
viewsHow to insert a value into the prompt box?
I need to access a web page, through the component WebView. 1- I can load the page. 2- I can intercept the button event. I can’t insert/ inject var name = prompt("Introduza o numero:"); Note: The…
-
2
votes1
answer59
viewsOptical illusion parallel lines
I have the following exercise that asks me to draw an optical illusion like the following: But I’m not finding a simple way to make the code so that it does this progression where it goes one square…
-
2
votes1
answer197
viewsProblem drawing chess board with objects
An exercise asks you to use basic objects of the type Rectangle, Polygon, Elipse... I used cycles for but only part of the board appears correct. I leave below the code: import javafx.application.*;…
-
2
votes0
answers51
viewsJavafx Webengine get content from an Iframe
I can’t tell when an Iframe is changed I use a listener to know whenever the page is loaded into the Webengine, however this listener cannot know when Iframe is changed/ loaded. Is there any way to…
-
2
votes1
answer34
viewsJavafx imput in textfields
I’m making a program to calculate matrices, but I don’t know how to put an action to the "Confirm" button to take the typed values of the Textlabels (tl_rows and tl_columns) and pass to the…
javafxasked 6 years, 10 months ago BulletSentence 157 -
2
votes1
answer220
viewsModify the indices of each item in a Treeview Java FX or Treeview.getSelectionModel() override method. select(int index)?
Greetings to all. This is my first post here. I am developing a Java FX project that consists of a form with a Treeview whose items are obtained from an Arraylist, previously completed through a…
-
2
votes2
answers138
viewsImplement Paint in Javafx
I’m trying to implement a similar application to Paint with Javafx. I can draw a line from one point to another, but it only appears after I drop the boot at the end point. When I try to implement…
-
2
votes1
answer230
viewsTableview bring date, mysql database
I have a Table View, which receives the data of a table in my Database, until then I was able to bring the data normally, but the date is different from the one registered in the database, always…
-
2
votes3
answers658
viewsJavafx: Location is required
This is the main code, I’m having problems regarding Fxmlloader, because I’ve tried several ways and the path is never found. package com.quixada.ufc.fbd.main; import java.util.ArrayList; import…
-
2
votes1
answer3802
viewsError trying to use Javafx 11 with Netbeans 9.0
I’m trying to update my version of Java to 11, but I cannot make it work on IDE. This error appears when trying to create a new project. I know that the JavaFX was taken from JDK from version 11,…
-
2
votes1
answer594
viewsJavafx Tableview setting values to Tablecolumn
I ended up finding a problem that I believe is trivial but I don’t know how to solve. I have a class Seller who has an association with another class: Department. And I need a Tableview that…
-
2
votes0
answers22
viewsJava with Javafx
People I’m trying to make a thread call when opening the customer registration screen, but my screen is not opening, someone can help?? @FXML void OpenCliente(ActionEvent event) { try { //CREATING A…
-
2
votes1
answer63
viewsHow do I tell the compiler that every Observablelist<O> I pass as an argument will contain a certain method?
I have the following research method: public class Pesquisa { private static <O> ObservableList<O> pesquisarPorNome(ObservableList<O> listaObservavel, String pesquisa) {…
-
2
votes0
answers96
views -
1
votes1
answer280
viewsHow to return a Boolean on the button
I have a button and I want when it’s clicked to return true in a if of another class, but I haven’t found any method of how I do it. Button b = new Button(); Other class: public static…
-
1
votes1
answer150
viewsCombobox values do not appear for selection
I would like the help of you on the following question!! I have a combobox and want to fill it with whole numbers. It happens that when I run the program nothing appears for me to select!... Follow…
javafxasked 9 years, 8 months ago Sara Fernandes 317 -
1
votes1
answer1961
viewsHow to pick up selected item from a javafx Combobox
How can I pick up the selected item from a Combobox? I saw some ways to do but I couldn’t implement, I don’t understand how it works. I can set the items of the combobox as follows:…
javafxasked 9 years, 7 months ago DiegoAugusto 8,694 -
1
votes2
answers194
viewsFunction only returns zero
Good afternoon!! I would like your help in the following question: I have the following function that returns me as a result 0 only: public double calorEspecifico(){ double cp; cp = (fruto.getCp1()…
-
1
votes0
answers74
viewsProblems with FXML Task and Progressbar
I want to open a screen in Javafx that will load a search in the bank and bring to a Table. I would like this search to be done by another Thread, since it may take a while and would like to update…
-
1
votes1
answer797
viewsAdd event (action) when switching tab
I have a Tabpane in my project that contains 3 different tabs, I would like to know how to add an event when changing "tab" in Javafx. For example, by clicking on the "address" tab, create an event…
-
1
votes1
answer350
viewsDisplay an alert when the event is 5 minutes away
I am developing an agenda in Java, where I have in the database the date and time saved. However, what would be the best way to display an alert 5 minutes before the event? Do I have to run the…
-
1
votes0
answers120
viewserror running Javafx on Windows 7
I recently made a simple application on Macosx (Lion) using Javafx. But playing a few libs (jar) and implementing a few more snippets of code, the application stopped working on Windows 7. When…
-
1
votes1
answer727
viewsList in Textfield or an editable Combobox when user type - Javafx
Someone more experienced, could inform me if Javafx has any way to make a list as you type in the textfield. Example: When you type your facebook email, and you type the first letter and your email…
-
1
votes1
answer915
viewsProgressbar using Javafx
I have a method that reads multiple files and generates a report for each file read. How do I take the time of each service and show on ProgressBar? I have to use Thread or Task? I tried to do it…
-
1
votes1
answer47
viewsMy Thread only runs 2 times
I have a method that takes several files from a directory lists them in a table and generates a report for each file. I put a thread in this method and now it only picks up 2 files and stops. Where…
-
1
votes0
answers87
viewsJavafx takes time to open the first time
I have a relatively complex GUI class that I inherit from Tab. When I create an instance of it, it builds the menus and GUI in direct code, without fxml. It uses icons in external png, but the…
-
1
votes1
answer77
viewsCalculate When Selecting Option In Enum Class
Good Afternoon!!... I have the following question... I have an Enum class and in it within each "option" I perform a calculation when selecting... How would make that calculation run and so, I have…
javafxasked 9 years, 8 months ago Sara Fernandes 317 -
1
votes0
answers255
viewsIn javafx how do I capture the column title click event to organize the records?
I have a tableView and this one has five columns. The first two columns are written with records I took from the database and the other three are just buttons I insert at the time of table creation.…
-
1
votes1
answer469
viewsEdit FXML Button text
I cannot change the text of the button created in FXML. Even if I put inside the initialize(... butao.setText("..."); he doesn’t change. What I do? Personcontroller, intializable: @Override public…
-
1
votes0
answers196
viewsError while generating report
I have an app JavaFX where I have a button that generates reports. But when I try to generate the report this error happens: Exception in thread "JavaFX Application Thread"…
-
1
votes1
answer76
viewsHelp with Task - Javafx
Good afternoon, I would like your help with Progressbar and Task in javafx. I have a progression that have its value altered. I have the following code: Task task = new Task<Integer>() {…
-
1
votes0
answers138
viewsError running Timertask Javafx
I am trying to perform a task every 1 minute. The task is executed but when it arrives at the right minute to perform the action of this exception: java.lang.Illegalstateexception: Not on FX…
-
1
votes0
answers725
viewsTimertask calling method twice
I have a TimerTask which calls a method every 1 minute, but the method is called twice. This method checks some factors and sends an email, as the method is called twice the email is sent twice.…
-
1
votes1
answer90
viewsUnderline custom javafx
It is possible to leave a text (or any text Node) with custom underline. Like microsoft word when there is an error word. Using the CSS
javafxasked 8 years, 12 months ago Rodrigo Santiago 1,822 -
1
votes1
answer847
viewsJavafx - button-click event, inside a table, does not work
I am in a Javafx project where I needed to make an autocomplete in an input. We have some plugins that can be used, but the autocomplete was so simple that we prefer to do on hand same. Here is the…
-
1
votes0
answers39
viewsModal of absolute loading
Good afternoon, I would like to know how I can make my loading stage absolute on my main stage. Since, as the code below I am setting the X/Y based on my main Stage, however when moving the main…