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
-
1
votes2
answers556
viewsJavafx Enter by TAB
Someone knows how to change the focus with the enter key instead of tab using Javafx. I’ve researched a lot and can’t find anything about it. Only in Java. Please someone has already done it?…
javafxasked 8 years, 9 months ago Alessandra Canutto 61 -
1
votes2
answers6513
viewsHow to implement a close (close) screen event?
When I create a screen in Scene Builder in Javafx, comes as default three buttons in the upper corner of the screen that are: minimize, maximize and the close-up. My question How I can manipulate…
-
1
votes0
answers206
viewsError solving Handler Javafx method inside classeDAO and controler with Mysql database
I am trying to create a simple cash system (cash entries minus cash outputs equal balance). And I made a method in class Dismissed going to the bank with the personalized consultation: (SELEC…
-
1
votes1
answer291
viewsError running . jar out of eclipse with javafx
I’m trying to run a .jar outside the eclipse and is returning the following ERROR: C: Risc>java -jar Graphicalreport.jar Exception in Application start method Exception in thread "main"…
javafxasked 8 years, 9 months ago Ronaldo Lopes 453 -
1
votes0
answers55
viewsListview with Hibernate 3 no population
I have the class below, the method listGeneroTreeView(), captures the values I have in the bank. However, I am not able to display this data on treeview. I just know it works for a message I put in…
-
1
votes2
answers641
viewsExchange information between Javafx windows
Good afternoon, I need to exchange information between different windows (Scene) with javafx, I searched the net and saw that the most common is to use controller communication. My scenario is this:…
javafxasked 8 years, 2 months ago Ronaldo Lopes 453 -
1
votes0
answers39
viewsChange menu text Accelerator
I created the following MenuItem, MenuItem item = new MenuItem("Alterar"); KeyCodeCombination acc = new KeyCodeCombination(KeyCode.ENTER, KeyCombination.CONTROL_DOWN); item.setAccelerator(acc); It…
-
1
votes2
answers868
viewsCSS javafx Color Text
I have a Button and I am using javafx, what I need: the text of the button is written Search, I need the 'B' to be in red and the "uscar" to the default color, I have tried everything and I am not…
-
1
votes0
answers366
viewsjavax.faces.Validator.BeanValidator.MESSAGE={1} {0}
I created a form where I have the following Name, Job, Login and Password fields. I’m using the javax.faces.validator.BeanValidator.MESSAGE={1} {0} to returns error message to the user. I know it is…
-
1
votes0
answers116
viewsInsert folder with MAVEN javafx project
Guys I have a MAVEN project, when Gero the project, it generates the main JAR and the LIB folder, which contain the library, all right up to there, what I need is to include another folder with…
-
1
votes0
answers206
viewsTableview with Checkbox - Javafx
I’m filling in the TableView with a ArrayList<HashMap<String, Object>> and I’m not using a model table but getting the data from ArrayList. By marking the CheckBox, need to get the data…
-
1
votes1
answer423
viewsHow to delete item from a Combobox after selecting it?
I use a ComboBox to add an object to a TableView and wanted that soon after the user click on the desired object, this item was added in the TableView and left the list of ComboBox. I tried it like…
javafxasked 7 years, 8 months ago Cézar Azevedo 13 -
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
answer286
viewsAccents ~ not working in Javafx
Hello, I received software that uses Javafx, and it was in the development stage to be finalized. I’m testing it and I realized that Portuguese accents, like, ~ and `, are not recognized in…
-
1
votes2
answers816
viewsHow to save a file to Javafx or Java?
Code I tried to make, but it doesn’t work: Javafx FXML Application: salvar.setOnAction((ActionEvent e) -> { Stage window = (Stage) cont.getScene().getWindow(); try { String corpo =…
-
1
votes1
answer1048
viewsHow do I make the program change the scene based on one button action in Javafx with Scene Builder?
Hello, everyone. I am trying to create a game in which the first window displays 2 buttons. One must activate 1 player mode and the other 2 players mode. When one of the modes is selected I intend…
-
1
votes1
answer861
viewsWait for the execution of a method to be finished, before being able to re-export it again
I am developing a data synchronizer, basically the synchronizer will every 5 seconds check if there are data to be synchronized. However, my doubt consists in how I will do for when the…
-
1
votes1
answer82
viewsWhy are instantiated controls not displayed in the UI?
I have this login app. It is not starting the components correctly. I would like to know how to start them. The code is the same as in the Javafx book of the code house, in the login example.…
javafxasked 7 years, 7 months ago Sergio Souza Novak 513 -
1
votes2
answers680
viewsJavafx how to close an internal Anchorpane
Hello folks my doubt is have a child Anchorpane that is added inside the parent Anchorpane in my son Anchorpane I have a button called close. How do I close Anchorpane Son without closing Anchorpane…
-
1
votes1
answer685
viewsHow to update a Label automatically every minute?
I am wanting to make an application that checks the price of a product every minute. In my Code test this as follows: package sample; import javafx.stage.Stage; import java.awt.*; import…
-
1
votes1
answer32
viewsWhat is the best type of field? Textfield, slider, ...? For value above 0.1?
I made this layout as an example of a problem I’m having in creating a system, well, in the first value field (TextField) I cannot let the user enter the value zero, will only be allowed 0.1 up, as…
-
1
votes0
answers107
viewsHow to draw Polylines in Javafx?
How do I draw Polylines on a canvas in Javafx? I’m trying to do something similar: public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250);…
javafxasked 7 years, 7 months ago Sergio Souza Novak 513 -
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
votes2
answers1757
viewsFXML file stopped opening with Scene Builder
Until yesterday when I was moving opened a good file. Then now does not open my file anymore. The other fxml of the project open normally but this one in specific appears the icon below that is open…
-
1
votes0
answers102
viewsUpdating the language of a Javafx application at runtime
I have a combobox that contains the languages, while selecting it stores and I would like to already apply the language update. But I wanted to do it dynamically. The problem is that I don’t know…
-
1
votes1
answer147
viewsprogress bar is not updating correctly
I’m developing a data synchronizer, where every five seconds I check for data being synchronized. The synchronization part with the check time every 5 seconds is already working. However, I could…
-
1
votes1
answer251
viewsHow 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…
-
1
votes2
answers559
viewsCapture Textfield change from Javafx
Have some event that captures every change that occurs in a Javafx Textfield?
-
1
votes2
answers155
viewsHow not to lose the decimals when doing "longProperty1.divide(longProperty2)"?
What I want to do is very simple, I just don’t know how to "do it right" in Javafx: I have two Longproperty (num1 and num2) and a Doubleproperty (resultado), where this Doubleproperty resultado must…
-
1
votes1
answer95
viewsJfxtextfield is not a Valid type. Error launching application in Javafx
I’m using a Javafx lib for styling, and one of the stylizations I’m using is Jfxtextfield, however, when compiling the application, I come across this error: Jfxtextfield is not a Valid type What is…
-
1
votes0
answers35
viewsPopular Tableview with dice coming from apache derby
I’m trying to popular tableview with data from apache derby but I’m not getting it. Follow the code: Telaagenda class: package view; import java.awt.ScrollPane; import java.util.Observable; import…
-
1
votes1
answer496
viewsHow can I change a label that is on a javafx gridpane
Good afternoon community, Lately I’ve been exploring the javafx aspect and creating an application for my master’s degree. Briefly, the application receives an image from the user, and creates a…
-
1
votes0
answers89
viewsPrint webview content in windows with encondig utf-8
I am trying to print the content of webview in javafs 2.2, in windows and non-functional special characters, (accented vowels, ç...) already changed the charset of the application as follows: public…
javafxasked 7 years, 4 months ago Marcus Vinicius 63 -
1
votes1
answer63
viewsjava: how to access an object through a string
I have a grid with several rows and columns and each cell has a Label. Each Label is named by column and row (example: a1, a2, B1, B2, etc), has how I access these Labels through a String? Example:…
-
1
votes1
answer288
viewsAccess a textField that is inside a gridPane in javafx
I have been developing a master’s degree in javafx: something that receives an image, puts a grid with textFields on all cells above the image. The user can then put values in the textFields. The…
-
1
votes1
answer206
viewsJavafx progress indicator in interface construction
I need to create a progress indicator so that the user has a sense that the program is running something from behind. Briefly I want to upload images to a TilePane grid gallery style, however when I…
-
1
votes1
answer337
viewsPass class values when generating a pdf in Javafx
Good afternoon, I created a PDF.java, which has the function of generating a pdf, and in another file (Formulariohotelerioscontroller.java) when clicking on a certain button, I urge the PDF.java…
-
1
votes0
answers44
viewsAdd scroll bar to select in webbrowser
I need to change the properties of my webbrowser in javafx so that a scrollbar is available in select. By default the HTMLSelectElement is adding 2 arrows one at the beginning of the list and…
-
1
votes1
answer90
viewsSuggestions from the IDE / how to do?
I have the following problem I have some text that will be inserted by the user and we will take as an example Inserted sentence: I wish I knew how to program better #today. I wanted a listview to…
-
1
votes0
answers209
viewsCapture data with Selenium, add and insert into another field
I have a code where it captures data from a field, using the Selenium Webdriver and insert into another field. I would add (captured field + 1000) and then insert into another field. Where I’ll…
-
1
votes1
answer252
viewsInput in javafx
I have the following program that draws an illusion of Pogendorff but I need that before he runs ask the number of rectangles and by chance of lines. That is, the N_BARS be put by input provided for…
-
1
votes0
answers87
viewsvisulaizar PDF in java application - Embedded - Problem in rendering
Hello, I need to view PDF’s in my JAVA application. After some research, putting aside the paid components it seemed to me that the best answer would be this: Displaying pdf in Javafx The colleague…
-
1
votes1
answer41
viewsHow to check an Imagepattern of a Rectangle in Javafx?
I’m trying to check in this method if my Square, which inherits from Rectangle, was filled with an Imagepattern through the getFill function(): public boolean HouseIsValid(House Square) { return…
-
1
votes1
answer385
viewsHow to add a calendar in Frame or Panel in Java
I’m developing a Java project that deals with dates. The main idea is to put a medium-sized calendar on the main screen, dates that already have an event scheduled should have a color (blue, orange,…
-
1
votes2
answers80
viewsHow to Recover Data from a Datepicket Add to Mysql/JPA Database
I am trying to recover the data from a Datepicker in JAVAFX and put in my database, but I cannot convert in a certain way :( // Desse modo dá certo String cpf = cadastro_alunoCPF.getText();…
-
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
answers22
viewsGraphical Interface with Javafx
I’m starting to study Javafx in the java-free course I took at Udemy. Since I am new to java, I would like to understand the advantage of working with this library compared to developing a web…
-
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
votes1
answer124
viewsTableview does not update when adding new values
Good morning, I’m starting in this world of java and I’m having a difficulty that I don’t have much idea how to solve. I am creating a register of equipment with Javafx, add and search values…
javafxasked 6 years, 11 months ago Marcelo Voigt Zschornack 11 -
1
votes1
answer1206
viewsTextfield Javafx with dynamic monetary value mask
I’m trying to create a textfield java FX for a financial application. I would like this texfield to follow the same pattern of numerical fields found in bank Atms. For example : in ATM the initial…