Questions tagged [javafx]

The JavaFX platform enables developers to create and deploy Rich Internet Applications (RIA) that behave consistently across multiple platforms and browsers. JavaFX 1.3 and older, were scripting languages, whereas JavaFX 2.x+/8.x enables users to use Java. FXML enables JavaFX to follow MVC ...

0
votes
0answers
5 views

What has happened to SwingFXUtils?

I just started using JavaFX 11, and SwingFXUtils seems to be gone (or renamed?) I tried to download it manually, but the module-system complained about import sun.awt.image.IntegerComponentRaster;, ...
1
vote
0answers
9 views

TestNG instance initialization doesn't work when application is deployed as jar file.

I have looked through every blog/forum but unable to solve this. A simple project, On button click declare testNG instance and run it. This works when project is run in eclipse. But after exporting ...
0
votes
1answer
51 views

Overriding interface method in Java

I am trying to use an existing package to create my own app upon it. However I do not know how to call an interface parametrized method. On the package that uses JavaFX there is a class that's ...
0
votes
0answers
14 views

SceneField TextField is coming Null

I have this method that calls a new window loading the bank data private void Editar() { try { if (con != null) { FXMLLoader fxmlloader = new FXMLLoader(getClass().getResource(...
1
vote
0answers
19 views

Problem with adding multiple triangle meshes to a scene in javafx

I hope someone can help me with this problem. I am using javafx and triangle mesh to construct a sphere-like object out of triangles (like a football). The different tiles of the shape are ...
0
votes
0answers
27 views

JavaFX CSS is not working when using fx:factory to populate custom GridPane component

I have a problem with CSS on Component when fx:factory is used, additionaly gridLinesVisible property does not seem to work either. Let me get to the point, my component looks like this: <?import ...
0
votes
1answer
15 views

How to rotate the arc with in the Circle1 path contineously?

I am designing the web pages for that I have to rotate the arc in the circle path. I don't know the previous experience i javafx. Please, help me how to rotate the Arc in the circle? [2][I added the ...
-1
votes
1answer
25 views

JavaFX ListView Resize behaviour

I am having a ListView in which i am adding a list of HyperLink, Below is MCVE, public class TestListView extends Application { private int counter = 0; @Override public void start(Stage stage) { ...
0
votes
1answer
17 views

How can I print out current CPU usage and update it in Java Scene Builder (FXML)

I'm trying to build a CPU monitor tool in scene builder (FXML) and I cannot get it to update the CPU usage in a FXML label. I can get it to print out the cpu usage in the start but that is it. Here is ...
-1
votes
0answers
45 views

How to detect all of a specific class's objects?

So I was wondering how I can detect all the objects of a certain class. I have a JavaFx application in which I need to detect its objects, however, because I created multiple of the same objects, I ...
0
votes
1answer
30 views

How to disable logging of ChromeDriver using Selenium and JavaFX

When I run my app java is always writing things like: Starting ChromeDriver 2.42.591088 (7b2b2dca23cca0862f674758c9a3933e685c27d5) on port 19943 Only local connections are allowed. сен 27, 2018 11:18:...
0
votes
1answer
26 views

index out of bounds trying to enable minimizing via taskbar icon

long lhwnd = com.sun.glass.ui.Window.getWindows().get(0).getNativeWindow(); Pointer lpVoid = new Pointer(lhwnd); HWND hwnd = new HWND(lpVoid); final User32 user32 = User32.INSTANCE; int oldStyle = ...
1
vote
1answer
35 views

JavaFX - The keyboard events do not process

I'm writing a simple game similar to Arkanoid. It is necessary to make a platform shift by pressing the left arrow. The code responsible for clicking a button: canvas.requestFocus(...
0
votes
0answers
27 views

JavaFX rotated node to fill pane

I'm trying to work out how to set up a rotated component to fill it's parent pane, e.g. the center of BorderPane. This example, with a TableÍView, shows the explained behavior: public class ...
0
votes
1answer
13 views

geotools points to polygon graphically

I want to draw polygons on the map from inserted points I add some points using mouse dragged while control key is pressed like this now i want to convert (or replace) these points to close polygon ...
-2
votes
0answers
24 views

JavaFX TableView setItems is not updating table

I have a javafx table that I want to display data in. I create the table in the controller class. @FXML public TableView<ArrayList<Double>> similaritiesTable = new TableView<ArrayList&...
0
votes
0answers
26 views

Adapt the height of a webView to the height of its content

I would like the height of a webView adapt to the height of its content. The content should be covered just so without scroll bars being placed -- the webView should not be much bigger. The following ...
-1
votes
1answer
24 views

How to equally set the column width in JavaFX table using Scene Builder?

I am building a table in Java Fx using Scene Builder. The parent of the table is a Grid Pane. Normally I use computed size to the row's, the column's Min width, Pref Width and Max width to equally ...
0
votes
0answers
74 views

Netbeans 9.0 with javaFx 11 and JDK 11

I am trying to rum javafx 11 on netbeans 9 Scince that JDK 11 dose not have javafx anymore i couldn't get netbeans to run a javafx project , it says: "Failed to automatically set-up a JavaFX Platform."...
4
votes
2answers
41 views

JavaFX Scene loses color when a button is created

Can anyone explain why my scene loses color the moment I create a button in JavaFX? The following code works, with the background of the scene changing to red @Override public void start(Stage ...
-2
votes
0answers
28 views

Adding a scrollpane to a borderpane [on hold]

I want to add a scroll pane to the border pane which has subpanes such as gridpane, borderpane etc. Kindly help me with the same.
1
vote
2answers
40 views

TreeTableView : setting a row not editable

I want to have control over the styling of some rows of a TreeTableView based on the level in the tree. I used setRowFactory and apply a styling if this row is part of the first level children of the ...
0
votes
0answers
24 views

Can I read XAVC with JavaFX Media?

I am attempting to find the duration of these video files, along with any other information I can grab, because I need to fix timestamps and do some time calculation for aligning files from multiple ...
0
votes
2answers
22 views

Dynamically Displaying data into TableView from Database ERROR IN cellvaluefactory

Can anyone Help? I want to dynamically display my Database content into TableView in FXML file. The Code works when I don't have any null Value in any of the column database. I expected the code ...
0
votes
0answers
41 views

javafx: How to add any component at runtime and at the same time make its table column in database using hibernate? [on hold]

Greetings, I want to create a dynamic form in my javafx application like, If I added a dynamic combobox in my form then its table column should be created. It should work properly, like adding ...
1
vote
1answer
21 views

JavaFX 8 + Spring Boot, Print API not showing the Page Setup

I have a simple Spring Boot + JavaFX 8 application like so: package com; import javafx.application.Application; import javafx.print.PrinterJob; import javafx.stage.Stage; import org.springframework....
0
votes
0answers
24 views

How to load next URL with engine.load()

everyone. I have a problem in using javaFX. I need to load URL (auth-form), enter auth data, then another URL must load, i tried to do this with javaFX: @Override public void start(Stage primaryStage)...
2
votes
1answer
44 views

`Alert` sometimes gives ridiculously small windows - how to fix this?

This happens with Oracle Java 10 as well as OpenJDK 10 & 11 with OpenJFX from Maven on Linux. More often than not, it turns out like this: I tried setMinWidth and setMinHeight, but these seem to ...
2
votes
1answer
32 views

Using FontAwesomeFX, how to have two icons for one button?

In my JavaFX program I am using FontAwesomeFX to add icons to buttons, labels, etc. The way how I style this is through the .fxml file: <Button fx:id="btnGoToWeb" onAction="#...
-2
votes
3answers
20 views

Coexisting Mqtt-Subscriber and UI crashes

I’m more or less new in Java programming. I’m working on a program that receive a mqtt-message, that incomes nearly every second via a broker and have a UI. My problem is, if the mqtt-broker run, the ...
3
votes
2answers
61 views

JavaFX table row update

The scenario i am trying to achieve is, Whenever a particular TableCell in a TableRow gets updated , the row color will be changed to red and after 3 seconds the color should be automatically ...
0
votes
0answers
34 views

javafx draw concurrent into a number of canvases

I've got a gridpane with three columns (name, amount, position) and ~20 row (A, B, C, ...). In the third column I draw a stroke for every timestamp in list for that row. In the function I only iterate ...
1
vote
0answers
22 views

JavaFX + ProcessBuilder / Runtime.exec() starts process after JVM closes [duplicate]

I'm experiencing a very weird behavior from JavaFX. It is related to Why are Runtime.getRuntime().exec and ProcessBuilder starting my second jar application after the first one exits? that wasn't ...
1
vote
1answer
22 views

java.lang.reflect.InvocationTargetException in javafx program [duplicate]

I am currently trying to code a simple MediaPlayer to explore javafx. (beginner here) I want to open a mp3 file and simply play it but when i launch it there is an exception ive never seen. Heres the ...
1
vote
0answers
32 views

JavaFX MediaPlayer: MP4 loop freeze, sound distorted, Windows 7

We have a problem with JavaFX MediaPlayer for more than a month now. We read and tried all the similar problems here, nothing worked. Simplest example: It's an info app with 2 videos from a folder ...
0
votes
2answers
53 views

how to delete file after the JVM terminates?

I am working on a media player application and I want to delete the decrypted media file which is created in a specific folder after running the encrypted media file as soon as the JVM terminates. I ...
0
votes
0answers
35 views

Changing the style of a TreeView in JavaFX with CSS

i'm trying to style a TreeView in JavaFX using the CSS file, but there's a thing i can't understand: I'd like my TreeView to appear with the lines like in this picture, but i obtain them only like ...
0
votes
0answers
50 views

Invalid version of javafx.stage.Stage for JavaFX11

I created project in new Java SDK 11 based on this example: EntryPoint.java package com.example; import javafx.stage.Stage; import javafx.scene.Scene; import javafx.scene.control.Label; public ...
0
votes
0answers
24 views

Treelist get rid of roots. Just leafs should be shown

I am trying to get rid of the roots (Bucky and Megan). If I click the button, it doesn't work. Could anyone help me pls? The leafs (Michael, YouTube, Video, Lipstick, Glitter) should not disappear. ...
0
votes
0answers
19 views

Applying JavaFX lighting to ImageView

I'm trying to apply a basic point light to an ImageView, but applying the lighting affect cause the image to be incredibly blurry, as you can see in the linked images. How do I add lighting so it ...
0
votes
0answers
52 views

NullPointer when I wanna change scene

I wanna change my scene like below (in another class it's working): Pane pane=FxmlUtils.fxmlLoader(NAME_PANE_FXML); gameSlotPane.getChildren().setAll(pane); FxmlUtils class public static Pane ...
0
votes
1answer
27 views

JXBrowser - How to import BrowserView component into SceneBuilder

I am writing a JavaFX application using JXBrowser. I seem to be having some trouble however figuring out how to add the BrowserView component into Scene Builder. I have tried importing all of the ....
0
votes
0answers
30 views

How to display a Loading Page before opening a Main Window of Application in JavaFx

I decided to develop my programming skills, so I started with simple JavaFx project. I've created a few views and now I want to implemment a Loading Page which can display progress in settings ...
0
votes
0answers
23 views

While adding pagination in javafx ,pagination call back function is not getting called

FXML <?xml version="1.0" encoding="UTF-8"?> <?import javafx.scene.control.Button?> <?import javafx.scene.control.ComboBox?> <?import javafx.scene.control.Label?> <?import ...
-1
votes
1answer
53 views

How do I ensure that a row from my JavaFX TableView is deleted from the actual database it is fetching data from?

I wrote a program which loads data from a SQLite Database and imports it into a JavaFX TableView, which can be seen once the a button within the application is pressed. @FXML private TableView<...
-1
votes
1answer
31 views

Static labels on graph within a ScrollPane JavaFX

I'm trying to draw multiple graphs next to each other where the the axis of the graphs can be outside the viewport. I draw each graph within a HBox which is nested within a ScrollPane. This is fine ...
-2
votes
0answers
29 views

Custom CellFactory item in updateItem method does not match underlying bean value

I have a Selection column in my tables that shows a custom image for selection. Its based on a SimpleBooleanProperty. My code works fine 99% of the time but sometimes, the columns are selected but the ...
1
vote
1answer
59 views

NullPointer with afterburner.fx when trying to create View

Afterburner.fx has broken for me and I can't seem to get it working again. In my main method I have this: @Override public void start(Stage primaryStage) throws Exception{ Map<Object, Object&...
0
votes
0answers
34 views

Maven Execution Error After Adding Jasper Report Dependency

I have a maven javafx project with this pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
-3
votes
0answers
21 views

Call same Anchor pane form one controll to other controller in javafx [on hold]

how to call one anchor pane form UI and call same UI anchor pane form other controller class