Questions tagged [javafx-8]
JavaFX 8 (previously named JavaFX 3) introduces a new API for JavaFX technology. JavaFX 8 supports 3D and brings up a Retina-Display Support. It is part of the JDK8.
5,926
questions
-1
votes
0
answers
35
views
3D graphic design in JavaFX
I have a question about 3D graphic shape in JavaFX. I drew a 3D snowman. I'm trying to add a mouse event that let an object move to the mouse click position but other objects are affected and some of ...
0
votes
0
answers
35
views
why are the messages only being printed on client side of the GUI?
i have been working on a game called roborally. And we are supposed to establish a multiples Client chat. I want to know if my server or clientHandler aren't sending messages to the clients.
im Using ...
0
votes
1
answer
83
views
Updating TableView from another FXML/Controller
I've created an FXML file that allows users to see if a patient has a surgery listed in a TableView and also has the ability to add in a new surgery. To add in a new surgery the user right clicks on ...
0
votes
1
answer
48
views
Get values from the ListView and display on a label in JavaFX
There's a list in a listView and there is a label to display the items that I selected. But when selecting more than one the label only shows one (the newest selection). What I want is to display all ...
0
votes
0
answers
102
views
Figma with JavaFX and custom components
Description
With my team we are currently thinking to use Figma for the graphical part of out project, this way the designer will be able to make some modifications and get the components easily for ...
0
votes
0
answers
33
views
Javafx showing folder icons when I run it
Im having this problem running javafx on my mac its opening a folder icon named java everytime im running it. Is there a solution for this?enter image description here
I tried the run configuration ...
0
votes
0
answers
31
views
Cannot load image for region
Why doesn't JavaFX load my image for region though there is no error?
HelloApplication.java
public class HelloApplication extends Application {
@Override
public void start(Stage stage) throws ...
0
votes
0
answers
21
views
NullPointerException - passing parameters from one controller to another the accepting controller does not accept the passed parameter, SQLConnection
javafx.fxml.LoadException:
/C:/Projects/Java/TinyTool-2.4/out/production/TinyTool/views/list/ListDepartments.fxml
at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2606)
at ...
1
vote
1
answer
95
views
JavaFX bug with fast setImage call
I'm using Java 8 with JavaFX from Oracle, and I want to create a desktop remote app where the client continuously sends images as byte[] over sockets to the server. The server receives these images ...
0
votes
1
answer
26
views
Passing fxml objects between two seperate controller classes javafx fxml
I have two seperate stages (mainStage, popupStage), both with their own controller class and associated fxml file.
I would like to access some buttons defined with the @FXML annotation in mainStage's ...
0
votes
0
answers
10
views
Should javafx gui instantiation and gui handling code be unit tested
I'm a little new to java.
I have a project that is 25% javafx GUI instantiation / GUI handling.
I'm attempting to reach project code coverage >80%, but my untested GUI code is pulling it down.
Do I ...
0
votes
0
answers
43
views
Axis is not updated when a bar is added to chart
I have tab pane that includes a few bar charts which are updated dynamically by threads.
I am using JavaFX8. I have a function that appends data to the bar chart by adding a new bar.
The issue is: ...
1
vote
1
answer
107
views
How to set a transparent png as a stage's background in javafx?
I am trying to set a transparent png as a stage's background. The problem is that the transparent part of the png is not not transparent in javafx. This is the code I am using:
Pane root = new ...
0
votes
1
answer
32
views
JavaFX : style defined in fxml file (via SceneBuilder) cannot be overridden by the CSS file, how do I do this?
How do I force style from CSS to override style from FXML
So I have an fxml file to which I added style (via Scene Builder, it works). I have given the nodes a style class name, and am calling it ...
0
votes
0
answers
60
views
Menu Font in Javafx
I have been trying to change the font of the menu, but no luck. I do not want the background to be white, but the font. This is my code: Can someone please help me?
// Add the menu items to the menu
...
0
votes
1
answer
71
views
Javafx method for finding TreeItem by value returning null
I have created a method for searching a JavaFX TreeView and returning the TreeItem that matches a given value but it returns a TreeView with a value of null. I have added a couple of sysouts and it ...
0
votes
0
answers
47
views
JavaFX8: The last TableColumn's header text get clipped off if there's more than 45 TableColumns
Important disclaimer: I'm using fx that's packaged with JDK 8u202
I'm creating a TableView with about 100 TableColumns but when I scroll horizontally to the last TableColumn, that last TableColumn is ...
0
votes
1
answer
114
views
A JNI error + JavaFX error, matching java and javac versions along with matching JDK, do I need to update past Java 8? [duplicate]
I had this code working on a previous machine but have recently migrated my projects to a new environment, and am getting a new error when trying to get my project running:
[slick_57@slicks-pc ~/...
0
votes
2
answers
334
views
error: package javafx.application does not exist import javafx.application.Application;
I'm using Ubuntu 20.04 OS. I got
package javafx.application does not exist
error.I read all articles related to topic. I both set my default Java version 8 and also add the openjfx to the Intellij as ...
0
votes
1
answer
20
views
getSelectedIndex() is showing same index for same numbers JavaFX
so I'm creating a program that has a ListView and when I click on the items in its list it was to show the index of the assigned values and pass it to a label, but for repeated numbers it shows the ...
0
votes
1
answer
112
views
Javafx project deployment - how to handle assets/resources?
I recently finished my first JavaFX project and am ready for deployment. I found that when I create the jar file for my project my ide creates a folder with the jar and other necessary files. I ...
2
votes
1
answer
1k
views
How to fix "Unable to create javax script engine for javascript" in netbeans?
Im trying to do a project using Javafx and Netbeans IDE and I can not run my project because this message below "Unable to create javax script engine for javascript". Please can someone tell ...
2
votes
1
answer
64
views
Is any way to change the year faster from a datePicker element in javaFX?
I'm working with javaFX - in particular the datePicker node and I was just wondering, instead of incrementally changing the date via mouseclick in the datePicker popup menu, is there a faster way of ...
0
votes
0
answers
24
views
Selected table row in TableView border leaks
I have an interesting challenge. I have a JavaFX 8 TableView which seems to leak vertical borders of table cells in a selected row into the next or previous row. I have searched around and can't seem ...
2
votes
1
answer
145
views
How can I call a method in a JavaFX Application's preloader instance from the main Application's init() method
In a JavaFX application's init() method I am doing some checks, one of them is a check to see if it can connect to a web address based using Http response codes. This app also has a preloader that ...
-3
votes
1
answer
84
views
For loop returns last item not iterating [closed]
I am trying to print an array of objects on a JavaFX panel which I created.
When I iterate like this:
Product[] arr = new Product[2];
arr[0] = new Food("Apple", 3.44, "fruit", ...
0
votes
1
answer
85
views
Is there any way to make JavaFX spinner repeat its value range when hitting the lowest/highest value?
Is there any way to make JavaFX spinner repeat its value range when hitting the lowest/highest value?
For example, here I have Spinner with minValue 1, maxValue 5, initial value 3:
Spinner spinner = ...
0
votes
0
answers
86
views
Cant run because of java.lang.reflect.InvocationTargetException with javaFX without using FXML
Exception in Application start method
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk....
0
votes
1
answer
116
views
I keep getting an error when extending the 'Application' class
I’m trying to use JavaFX, but I keep getting errors when using anything from JavaFX:
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: ...
1
vote
0
answers
54
views
JavaFX 3D Make a node face/lookAt the camera
So i have a small application that displays a molecule. In the corner I have a second scene that shows the axis and the axis rotation relative to the main scene. At the end of each axis I want text ...
1
vote
2
answers
113
views
Why are the setAlignment methods on layouts static?
I noticed that the setAlignment method for layouts within JavaFX is static. Why is this the case? Doesn't this mean that a single node contained within two layouts of the same class cannot have two ...
0
votes
0
answers
23
views
Java FX ButtonBar Library
I am trying to build my first on JFX and am unable to find the jar library for javafx.scene.control.ButtonBar so that I can add to my project library. Any support please
1
vote
3
answers
307
views
Set ComboBox to read only without disabling the ComboBox using JavaFX
I do not want to disable the ComboBox because I want the user to be able to select the ComboBox button and look through the ComboBox items. And if the user tries selecting an item in the ComboBox, a ...
3
votes
1
answer
135
views
JAVAFX, how to update maximized-Undecorated window's width and height on screen when taskbar's location gets changed?
What I am trying to do is this...1
I am trying to add the ability for my Undecorated-window to automatically resize when its in maximize and the taskbar's location gets changed.
I have gotten close by ...
0
votes
0
answers
50
views
JavaFX 8 Tableview headings not aligned on Linux (works on windows) - despite tableview.refresh()
Using JavaFX 8 (bundled with Java 1.8)
Running this on a windows client, the refresh workaround does work.
(JavaFX TableColumns' headers not aligned with cells due to vertical scrollbar)
However ...
2
votes
1
answer
140
views
javafx - Can I set custom alignment in a column?
I need to make custom alignment in my TreeTableView column.
I test css style:
-fx-alignment: CENTER-RIGHT;
and my column has alignment:
start picture
But I need to be able to choose the alignment ...
0
votes
1
answer
349
views
JavaFx Exception in thread "JavaFX Application Thread" Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
The app runs perfectly fine in Eclipse and IntelliJ, and also in 'ant run'. Only when I run as Windows cmd to get the following errors:
java -jar TheApp.jar
Exception in thread "JavaFX ...
0
votes
1
answer
28
views
JavaFX: Need a custom control based on TextArea
I have the following requirement (sorry, but I'm quite new to JavaFX).
I need to have a custom TextArea that supports not only entering text but also entering a kind of macro.
This Macro has a unique ...
0
votes
0
answers
45
views
Change a binded string property throught non java application thread
Im trying to bind a label to some property that is modified outside the java application Thread and it throws not an fx application thread. I read the javafx concurrency documentation but Im honestly ...
5
votes
2
answers
502
views
JavaFX Layout issue in TreeView
Recently I updated my application from JavaFX 8 to JavaFX 18. After the migration I found some weird issues related to layout of TreeView. If I understand correctly, by the end of a scene pulse, all ...
0
votes
1
answer
207
views
JavaFx: CSS element unable to inherit properties of it's ID
I have created an Options menu with JavaFx and styled it with CSS. I have used FXML for designing the options window. In the options window, I have created a label at the top and given it ID "...
2
votes
1
answer
724
views
JavaFX corrupted Image from Server makes app crash
I'm trying to convert Base64 Image Strings and some URLs to image form but one or more of the images I get from the server seem to be corrupted. I can pick them out per hand but I need a code solution ...
0
votes
0
answers
94
views
Is it possible to edit the properties of a single tile in JavaFX tilepane?
Is there a way in JavaFX to get/change the properties of a single tile in the tilePane layout? More specifically, I am looking to change the color of a single tile.
If this isn't possible, what are ...
1
vote
0
answers
57
views
Is it possible to change the white file icon that appears when dragging a node with setOnDragDetected? (JavaFX) [duplicate]
GOAL:
I wish to change the white file icon that appears when dragging a node that has implemented setOnDragDetected. More specifically, I'm recreating chess in JavaFX, and want to have a chess piece ...
0
votes
1
answer
120
views
How to populate TableView data when parent class property is passed into PropertyValueFactory in JavaFX?
I was trying to add TableColumns to my TableView when an error popped up because my PropertyValueFactory could not read the property inside it. This was because the property that I was passing to it ...
1
vote
1
answer
273
views
Issue firing a valid cancel CellEditEvent when editing from one cell to another
I am implementing an editable TableView which relies on the CellEditEvents for cancel, start & commit events.
In the below example, the city column is editable, and the corresponding events are ...
0
votes
0
answers
22
views
JAVAFX custom icons on dialogs not working [duplicate]
All,
I have inherited some code that I am just cleaning up and doing some tweaks to. The 1st thing I want to do is add the custom icon to all the popups in the application. However, I am running into ...
1
vote
1
answer
210
views
How to set vBarPolicy in ScrollPane ? JavaFX
I'm trying to set vertical scroll bar to be always visible.
But i want to do it, using only fxml. Currently I;m trying to do this, like this:
<ScrollPane fitToHeight = "true" fitToWidth ...
1
vote
1
answer
491
views
How to fit children to parent?
I'm working on project where I use JavaFX to create a desktop app.
I have a small problem.
I created a home.fxml there is the code:
<?xml version="1.0" encoding="UTF-8"?>
&...
0
votes
0
answers
141
views
javafx is missing in the (select a wizard) window
My javafx applications run without any problems however the (select a wizard) window doesn't include javafx , what might be the reason for this and how can it be included?
I'm using eclipse 2021-12 ...