All Questions

129
votes
6answers
110481 views

Passing Parameters JavaFX FXML

How can I pass parameters to a secondary window in javafx? Is there a way to communicate with the corresponding controller? For example: The user chooses a customer from a TableView and a new window ...
14
votes
2answers
20168 views

Applying MVC With JavaFx

I'm new to the GUI world/OO design pattern and I want to use MVC pattern for my GUI application, I have read a little tutorial about MVC pattern, the Model will contain the data, the View will contain...
14
votes
3answers
7607 views

Using threads to make database requests

I'm trying to understand how threads works in java. This is a simple database request that returns a ResultSet. I'm using JavaFx. package application; import java.sql.ResultSet; import java.sql....
8
votes
2answers
14921 views

Javafx tableview not showing data in all columns

OK, new to java by several weeks, but have been programming for 30 years. The following code executes, but only the first column is showing anything. The data object is showing multiple rows of data...
8
votes
2answers
8803 views

Javafx PropertyValueFactory not populating Tableview

This has baffled me for a while now and I cannot seem to get the grasp of it. I'm using Cell Value Factory to populate a simple one column table and it does not populate in the table. It does and I ...
57
votes
4answers
83138 views

Platform.runLater and Task in JavaFX

I have been doing some research on this but I am still VERY confused to say the least. Can anyone give me a concrete example of when to use Task and when to use Platform.runLater(Runnable);? What exa...
2
votes
2answers
1513 views

Javafx - Can application class be the controller class

I'm currently teaching myself JavaFX, and I've taken a simple example program that's hardcoded the view and am turning it into one that uses FXML (mostly so I can use SceneBuilder for building UIs). R...
7
votes
1answers
7059 views

Get the height of a node in JavaFX (generate a layout pass)

How to get the height or prefer height of a node in JavaFX, I have 3 VBox and I want to add nodes to the the most freer panel, example: Childrens Total Height of the children's(Sum) V...
29
votes
4answers
15197 views

What's the difference between fx:id and id: in JavaFX?

Maybe a really newbie's question.... I'm starting learning JavaFX in a FMXL Application using the Scene Builder, by reading this tutorials: http://docs.oracle.com/javase/8/javafx/get-started-tutoria...
0
votes
1answers
1072 views

javafx using objects from MainController or other Controllers in proper Controller class

I have following code: package pl.javastart.youtufy.controller; import java.net.URL; import java.util.ResourceBundle; import javafx.application.Platform; import javafx.event.ActionEvent; import jav...

Previous Next