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
-
17
votes1
answer616
viewsDesigning the Top Gear
I’m trying to make a game like Top Gear (SNES) to acquire some knowledge about 2D games, only I came to a question about the tracks: they are straight, curved or images? I am using Javafx. If I try…
-
11
votes1
answer886
viewsMultiple Controllers with Javafx 2, as a reference to each other’s instance
UPDATED. I am creating a new Java application using Javafx, when programming with Swing I had the habit of creating multiple specialized controllers for the interface, and in Swing I use a…
-
10
votes1
answer2239
viewsIs it worth developing in Javafx for Web, Mobile and Desktop?
I’d like to know how Javafx is going, if it’s already consolidated, if it’s still a gamble.. I really liked the look and the "Write Once, run Verywhere".
-
10
votes1
answer732
viewsHelp with Javafx form
Hello, I imagine my doubt is simple but I haven’t found anything in the forums of life (probably because I don’t use the correct terms in the search). I am creating a form for students in Javafx…
-
7
votes2
answers1336
viewsJavafx application does not run on some computers after exported to jar
I developed a Javafx application, created an Ant script through build.fxbuild and ran a jar. The generated jar runs Ok on the computer on my service and on another developer’s computer, however it…
-
7
votes2
answers4016
viewsPays to migrate from Swing to Javafx?
Currently most of my applications are made with Swing. I’ve done 2 small projects web with JSF+Primefaces+Hibernate. My question is this:: It pays to quit Swing and study Javafx, or it’s better to…
-
6
votes3
answers5677
viewsHow to create input masks in a Textfield?
A few weeks ago I have been studying Javafx as an alternative to Swing, but I noticed that it does not bring any kind of TextField which allows entry masks to be placed, as we do for example in the…
javafxasked 9 years, 4 months ago Paulo Luvisoto 907 -
6
votes2
answers935
viewsJavafx Time Mask or Timepicker
I have a TextField where I enter with the hour, but I always have to type the :. How can I put a mask on this Textfield or else if it’s simpler TimePicker?…
-
6
votes2
answers263
viewsEclipse is not recognizing project CSS with Javafx
My project with Javafx simply stopped recognizing my . css and the following error appears: An error has occurred. See error log for more details. java.lang.NullPointerException In error log appears…
-
5
votes1
answer1324
viewsjava.lang.Classnotfoundexception error: "Caused by: java.lang.Classnotfoundexception: com.fasterxml.Jackson.core.type.Typereference
I am developing a Java, FX, Hibernate application and using log4j2 for my logs. When I run the application through the IDE (Eclipse) everything works normally, but when creating the . application…
-
5
votes1
answer127
viewsCode Review: Simple MVC
Hello world! I tried to make a very simple MVC in Javafx. My template is a class Pessoa who owns nome and idade (the field idade in case it is not used). Two text Fields represent two views. For…
-
4
votes2
answers1251
viewsJavafx Threads Update UI and load System in the background
I have a Stage Main that is my Login: In the FXML of that Stage I have a Region and a ProgressIndicator with the property setVisible(false) After successfully logging into the application the…
-
4
votes1
answer223
viewsConfigure to Eclipse show parameters name on auto-complete
Sometimes the eclipse, it shows in auto-complete the names of the variables in an easier way to understand. For example, if on this line you press Ctrl+Space : BufferedImage img = new…
-
4
votes1
answer145
viewsJavafx reality or just speculation?
I have experience in Swing 8 years, but for some time I’ve been reading that with Java 9 Swing will be totally abandoned by Oracle. Now arose the need for me to develop a Desktop system for a client…
-
4
votes1
answer329
viewsCreate Splashscreen to show file copy progress
I’m trying to create a splashscreen because when my application is open I perform some time-consuming actions, such as: Copy files Run a . exe My Main is like this: import…
-
4
votes3
answers851
viewsHow to create a stopwatch in Javafx using Scene Builder?
Guys, I’ve been a few months with some stranded projects, because I can’t get a label keep up to date. I can make a stopwatch, but when it comes to the interface created by Scene Builder, it crashes…
-
4
votes2
answers1210
views -
4
votes2
answers268
viewsProblem with Javafx
I have a problem when I add a JFX button that is present in the Jfoenix library. When opening my FXML document, it directs right to Scenebuilder, and inside it, to use all the items contained in the…
-
3
votes1
answer1058
viewsReturn to Start Menu when pressing ESC with Javafx
How can I get my application back to the start menu after pressing ESC. I can currently use Keyevent only when some component is associated, such as a TextField, Button, etc.. I just want to press…
-
3
votes3
answers334
viewsError using LIKE to search by name
When I used Mysql I could use the LIKE ? to do searches by name, code, etc... Now in SQL Server I’m not getting. I have a Textfield and a search button, I want to take the value of textField and…
-
3
votes1
answer119
viewsJasperview closing the entire system
I don’t even know how to explain it but I’ll try. I have a system made in Javafx that displays reports with Jasper according to the selected item, until then everything quiet, when selecting an item…
-
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
votes0
answers158
viewsMaxlength in Textfield
I have a Textfield in javafx, but I can’t find the Maxlength property. In C# and QT5, I have already made some applications, and it is very simple to find this property. I have found some answers,…
-
3
votes1
answer762
viewsWhy use the Observablelist?
I have a theoretical doubt. I was studying Javafx and do not know what the function of Observablelist in this case: public void start(Stage stage) { //Creating a Text object Text text = new Text();…
-
3
votes2
answers207
viewsUF field that accepts only 2 uppercase letters
I am trying to create a specific field for UF, in which only 2 capital letters will be allowed. I tried to use regular expression, but I couldn’t. Could someone give me a helping hand? public class…
-
3
votes1
answer270
viewsHow to capture the closing event in a Stage?
I’m looking for an event like "windows close" Swing.
-
3
votes1
answer1534
viewsPass an object between Javafx (screens)
The idea of the system is to save some information in a txt file that will be consulted by a code in Lisp, a decision tree routine will be performed and return the result to be displayed in the Java…
-
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…
-
3
votes1
answer225
viewsSave frames/ images of a video
Hello, I need to save pictures/frames from a video. The idea is to create a preview of the film before it starts. The problem is I’m not being able to implement the examples I found. First example…
-
3
votes1
answer83
viewsPossibility of application of design standard
After a login effective in the application I am building I return a boolean[] with all the accesses that the user has. // Armazena o controle de acesso do usuário LoginDAO logindao = new…
-
3
votes1
answer182
viewsJavafx: pros and cons of MVC, MVP, MVVM, etc
Which Model-View (MV) standard to use with Javafx thinking of scalability and good maintainability? On Google you find people recommending MVC, MVP, MVVM... maybe there are others. Some say that…
-
3
votes0
answers23
viewsError creating new CSV + Javafx + Windows file
Good morning, everyone. I have a java desktop (javafx) application that saves some configuration data in a CSV file. The jar of the same works perfectly in both OSX and Linux, but not in Windows, I…
-
2
votes1
answer433
viewsDraw Regular Polygons inscribed in a circle with Canvas in Javafx
Mind you, this is a method I’ve developed to create the vertices of regular polygons inscribed in a radius circumference r @Override public float calcularRaio(float lado, int numeroLados) {//…
-
2
votes1
answer110
viewsTableview Changelistener - NPE
I have two Tableview (tabela1 and tabela2) side by side. What I need to do is: when selecting an item in tabela1 the corresponding item in the tabela2. So far so good, it was easy, but I need to…
-
2
votes1
answer2234
viewsEvent click on Image Javafx
I have an implementation being developed in Javafx only that I came across some situation that seem to be simple, when designating an Event the image in your Onmouseclicked from my FXML got the…
-
2
votes1
answer265
viewsHow to place a Mousecliked event on a table using Javafx
I’m trying to put a Mousecliked event on my table but gives this error: java.lang.IllegalArgumentException: argument type mismatch My method is like this: private void…
-
2
votes1
answer1874
viewsHow to use thread in Javafx?
Before appearing the main scenario of my Javafx application, I want a class containing a presentation to appear; I’m unable to use the method sleep. A stage blank and then the class containing the…
-
2
votes2
answers1116
viewsProgressbar loading per Javafx Process time
I have a method that carries a ProgressBar, but it only starts loading at the end of the process, that is after my application finishes generating the reports it starts to be filled. How do I load…
-
2
votes1
answer4316
viewsNavigation between Javafx screens
What is the best way to navigate from one screen to another using Javafx. The way I’m doing every time the first screen calls the second screen the second screen opens with the size of the first.…
-
2
votes1
answer510
viewsFormat Textarea Javafx
I am creating a kind of Notepad, and I am trying to find some form, so that the úsuario can format its letter, size, color etc in a Javafx Textarea. Would anyone know if Javafx has a specific…
-
2
votes1
answer45
viewsHow to get position(x, y) of lower Node in Borderpane relative to the screen?
I have a Borderpane where you define your bottom value with an Hbox: borderPane.setBottom(new HBox(children)); I would like to know the position (x,y) mainly the y of Hbox in relation to the screen.…
-
2
votes1
answer467
viewsError creating login screen with Javafx
Good evening guys, I’m wanting to implement a login screen with the following fields, but it does not appear the other fields, appears the user field and password Forgot the login click…
-
2
votes1
answer1471
viewsJavafx Tableview apparently takes the value but shows null
Hello, I am migrating my program to Javafx to study only, I want to stop using Swing and pass only FX, but as in a previous time I gave up due to my difficulty in Tableview, without delay: I’m…
-
2
votes1
answer436
viewsHow to use external CSS in a Javafx application?
I’m making an application with Javafx and would like to put the CSS in external file, for example, the file would be located in the directory "C: app css". It is possible to recognize the external…
javafxasked 8 years, 8 months ago Ronaldo Lopes 453 -
2
votes1
answer128
viewsHow to put only Month and Year in Datapicker (Javafx)
By default (by javafx Scene Bilder) comes the datapicker month, day and year. I would like to know how to take the day, and leave only month and year. If you can, thanks!
-
2
votes1
answer34
viewsCheck if a field is bindBidirectional (Javafx)
Good morning!! I wanted to know how I check if a field is with Binding (javafx) I have the following field: txt2.textProperty().bindBidirectional(txt1.textProperty()); Have a button to enable or…
javafxasked 8 years, 7 months ago ALEXANDRE TELLES 21 -
2
votes1
answer151
viewsHow to set the root Stage of a controller?
I created a login screen that when authenticating redirects to the menu, but calling by the controller does not work. Main: public class Main extends Application { @Override public void start(Stage…
-
2
votes1
answer32
viewsBooleanbinding of multiple properties
I made the following structure so that when I make one of the components invisible, the others follow the same configuration. A.visibleProperty().bindBidirectional(B.visibleProperty());…
-
2
votes1
answer794
viewsWhich Scene Builder container can I use to make my desktop application responsive?
I’m starting to study Javafx and I have a question. Which Scene Builder container can I use to make my desktop application be responsive? The only container that came close to what I wanted was…
-
2
votes1
answer60
viewsCode the closure of an application
Hello, good afternoon everyone! I have a problem with the company’s software. I created a serverSocket when starting the application, and with this I can control so that only one application is…