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
answer59
viewsProblems with Thread in Javafx
I am creating an application to receive serial ports in computer use using the library jSerialCom. For this, I would like to keep updating this information in a ComboBox. But I can’t implement the…
-
0
votes1
answer29
viewsJavafx macos Mojave
Good morning, I’m having a hard time with Javafx. I installed E(fx)clipse version 3.4.1 public class Main extends Application { @Override public void start(Stage primaryStage) {…
javafxasked 5 years, 9 months ago tfrabaiolitech 1 -
0
votes0
answers161
viewsNETBEANS 10 when I create a javafx Fxmlapplication project
I am using DEBIAN 9 *https://openjfx.io/openjfx-docs/#install-javafx // I walked in here and nothing because it has to do always I’m with Netbeans 10 , when I create a javafx Fxmlapplication project…
-
0
votes1
answer287
viewsChange the content value of a javafx tableview line
Next, I’m using hsqldb to do a college job, and I need to change the content of a tableview view view In this case, in the columns Team name, you would need instead of code, the team name The seat…
-
0
votes1
answer157
viewsAccess all rows of a JAVAFX table
I have the following table: When clicking a button, I want a function to run on each line read: private void inserirResultadosUsuario() { //Necessário pegar o valor de cada linha e de cada coluna…
-
0
votes1
answer1461
viewsHow to resolve 'Error: Javafx Runtime components not found' java 11 ( linux )
I downloaded the Javafx Sdk for Java Platform 11 and I’m trying to open my FXML, but when I try to run my program it gives the following error: static String uId; public static void main(String[]…
-
0
votes1
answer81
viewsError trying to change Javafx application icon
Hello. I am developing an application in Javafx and I am trying to change the icon of my application according to the code below: public class Login extends Application { Image applicationIcon = new…
-
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
votes2
answers644
viewsObservable List in a list View Javafx
I need help with a code, this code is just an example that I’m trying to implement, my idea is like a sales screen where I would be adding in List View products to be registered in a sale later, my…
-
0
votes1
answer59
viewsDoubts when applying a DAO method
Well I have 2 classes the User class and the Request class my user class is like this: public class Usuario { private static Usuario instance; private Long id; private String login; private String…
-
0
votes1
answer23
viewsPopular combobox with a list of a query
Well I have a DAO class Departamentosdao I wanted to popular a combo box with a consultation I do in this DAO my DAO: public class DepartamentoDAO { private Connection con; public DepartamentoDAO()…
-
0
votes1
answer142
viewsProblem returning values to a combobox from a query
my DAO public List<Departamento> read(){ List<Departamento> departamentos = new ArrayList(); String query = "SELECT * FROM departamentos"; try { PreparedStatement ps =…
-
0
votes1
answer75
viewsWhy is it that when I put on the "Jcombobox" component of Swing, my show looks like this?
code I used import javax.swing.*; public class ComboBox extends JFrame{ JComboBox<String> combo = new JComboBox<String>(); public ComboBox(){ add(combo); combo.addItem("Brasil");…
-
0
votes1
answer287
viewsHow can I change the position of my Jbutton in Swing?
Hello, I’m a beginner and very layman in Java, I was creating a program, and in this program had a button, I wanted to know how I change some button of place in Swing, if someone can help me, I…
-
0
votes1
answer53
viewshow do I use Actionlisten? I need an example to better understand
Guys, in a previous question I had asked a question about actionListen, but I wanted to ask an example, could someone give me an example, I created this simple code q shows a Jbutton in Swing,…
-
0
votes1
answer58
viewsMy Java Object is not persisted with all its XML attributes
I’m using the JAXB API. I can persist right a java object in xml but only persist the attribute "Name" the rest of the attributes are not persisted. Here are my codes: This is the method that saves…
-
0
votes1
answer151
viewsI can’t use Scenebuilder with Eclipse
Hello, I have Eclipse (Eclipse IDE for Java Developers) and wanted to install Javafx. I already installed e(fx)clipse and restarted the IDE. But when I create a new project in New > Other, the…
-
0
votes2
answers67
viewsHow to pause Thread while Alert runs within Platform.runLater - Javafx Java
I need to execute a method within a Thread that contains Alert and Dialog. As you already know Javafx has the limitation of not being able to show Alert or Dialog inside a Thread, so I put them…
-
0
votes1
answer123
viewsPass Data to other Javafx screens
People who work with Javafx, I need a lot of help, I’m trying to pass data from one screen to another but I can’t. In my project I log in with a user searching in the database. Each user has one id.…
-
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…
-
0
votes1
answer27
viewsClass that previously referred to a stackpane seems to "lose" this reference in the future in JAVA
Hail to you, programmers! Ask for help with a Java Javafx code: - I have the controller class where all graphical elements with multiple @FXML are declared, including a stackPane variable. I pass…
-
0
votes1
answer94
viewsError while running file. jar
I was developing a calculator in Java to study the language. After doing the whole project and exporting the file. jar and try to execute it, nothing happens. When trying to execute on the terminal…
-
0
votes0
answers14
viewsPass an object inside another to a Tablelist
When trying to make an outline of my first program I realized that I need to pass to a Tablelist an object within another, I could not understand why Tablelist is not accepting to receive an object…
-
0
votes0
answers29
viewsJPA Hibernate does not work when I add the module-info.java
Hello, I am developing a simple CRUD study using Javafx such as GUI and JPA/Hibernate to do the work with the database. It’s a Maven project, I’ve added the required libraries and Javafx and…
-
0
votes1
answer18
viewsShow a column with String in table view where the field of the model class is Boolean - javafx
Good afternoon, you guys! I am studying javafx and I am creating a simple application, I was doing well until I came across the following problem: I have a model class 'User' that may or may not…
-
0
votes0
answers11
viewsProblem with controller in Scene Builder in case it does not recognize error
Hello folks apparently I am trying problem for Scene Builder to see my package controller, file: Loginverification.java and already looked the way and at first it does not seem to be the root cause…
-
-1
votes1
answer43
viewsSpreadsheet of excel:
What is the formula for finding the smallest number, second, third, fourth, etc. Numero 300 Menor numero 300 2º Menor (Qual é a Formula) 297 3º Menor 297 4º Menor 62 5º Menor 62 6º Menor 62 44 44 23…
javafxasked 8 years, 8 months ago JCFrutuoso 1 -
-1
votes1
answer2583
viewsHow to open Netbeans . fxml files directly in Scene Builder?
When I click on the fxml extension file Scene Builder does not open so I can work on it. What can I do?
-
-1
votes1
answer183
viewsAddall items in combobox
I have a ComboBox, and I am trying to put items (string values) but it is not accepting. I did it this way: private ComboBox<?> meuCombo; public void combos() { meuCombo.getItems().addAll("A",…
-
-1
votes1
answer145
viewsJavafx Screen Error
When I click to open the customers screen appears this error. Could anyone help me? Error: Exception in thread "JavaFX Application Thread" java.lang.RuntimeException:…
-
-1
votes1
answer45
viewsError in code by classes
Good.I have now started to study java programming that includes several classes in which one flame another. But I’m facing a mistake I can’t understand. I looked for codes with similar effect and I…
-
-1
votes1
answer310
viewsBUG - New JAVAFX Project in NETBEANS 11
I’m trying to create a new project with JAVAFX in the NETBEANS 11.1 with the UBUNTU 18.04. I tried several ways to configure, reinstalled JDK, switched between JDK 13 and Openjdk, installed openjfx,…
-
-1
votes1
answer253
viewsDoes Oracle’s JDK 13 have Javafx?
I saw that now Oracle has a JDK13, I have to wonder if it comes with a Javafx, as in JDK8 came with the Javafx8, thank you.
-
-1
votes1
answer38
viewsJava - How to read a String after a certain character
I have a string that contains the following text "DRINKS/SODA", as I do to read only the word "SODA"? In my code "txtDescGroup.setText(Entity.getDescGrupo1());" Entity.getDescGroup 1() = Is what is…
-
-1
votes1
answer254
viewsProgressibar using Threads and Scenebiulder
I’m doing a job, and I wanted to know in a simple way how I solve this, I’m doing a simple program in which it’s almost a game, basically you push a button, the progress bar starts to grow, and adds…
-
-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");…
-
-1
votes1
answer441
viewsJAVAFX How to change the label after FXML is built?
I have a label on Scene B. I want to change this label when the user clicks on the "Login" button on the first screen. I tried to do this in my project with the usuario.setText() (user is the label…
-
-1
votes1
answer40
viewserror: ")" expected } <
Guys, I’m trying to make a program that by clicking the confirm button, open another Jframe, but keeps giving the error error: ")" expected } ^ and error "teladelogin.java:48: error: class,…
-
-1
votes1
answer37
viewsforeign key registration method
I’m having trouble with the foreign key. I have a company record and in this register I put 3 foreign keys, which is that such relationship 1:n, right? Anyway, I can only put the columns on the…
-
-1
votes1
answer28
viewsProblems with Creating New Java Projects in Netbeans
The options for creating a new java project do not show the 'Java' option itself. The first option is Java Whith Maven as you can see. Among the available options or select Java Whith Maven the…
-
-1
votes0
answers26
viewsHow to resize swing and javafx "blocks" sizes in Intellij?
Hello, I’m learning Java and there are some classes that ask for swing and javafx, until then ok. But on the teacher’s screen, videos on Youtube that I saw, they add a button for example, and manage…
-
-1
votes0
answers13
viewsJavafx - Login System - Can’t Verify If Username Is in Arraylist
I am developing a Customer Service program (just to practice) and I have reached a point where I need to check if the user name exists in the "database" which, in this case, is in the ArrayList. I…
-
-2
votes1
answer184
viewsNullpointer Java Even if you initialized the variable
i am having a problem to set a label of another controller, my project is structured as follows: Filmeoverviewcontroller, is the Overview that contains a tableview, in that tableview you can select…
-
-2
votes1
answer32
viewsjava.lang.reflect.Invocationtargetexception in Javafx
I’m having a problem when loading a file with the Fxmlloader method, as in the image below. I don’t have this problem when I do a screen without using an FXML file, someone knows why of the error?…
-
-2
votes1
answer212
viewsError executing code in netbeans (JAVAFX)
The error is as follows (remembering that only happens in javafx, in swing everything works normal): Exception in Application start method java.lang.reflect.InvocationTargetException at…
-
-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?
-
-3
votes1
answer323
viewsJava - Java security-locked application
I am developing a Javafx application using Intellij, when running in the ide everything goes very well, but when opening the file. JNLP I come across the following message: I am using java 8 for the…
-
-3
votes1
answer185
viewsHow to remove Tableview lines even with search field using Javafx?
Eae personal, I am trying to put the option to clear Tableview in my project, but as I have implemented the search option whenever I try to clear Tableview is presented this error: Exception in…
-
-4
votes1
answer539
viewsCPF Field Mask
How can I add a simple input mask? For example I want when I type the number appear 111.111.111/11, limit the amount of characters I already know, just wish I knew how to add these points and bars…