Skip to content
Advertisement

Tag: javafx

Java Project Build and run problem with FX

i’m trying run a project with this architecture… And, when i press “Run” button the code gives me this error… My code of my Main… And i have this run cofiguration: –module-path “C:UsersGiovaDownloadsjavafx-sdk-17.0.0.1lib” –add-modules=javafx.controls I need help to solve this problem and run the project please Answer You are using fxml so you need to add the fxml module, otherwise

Java VMOptions in VSCode

I’m attempting to run a simple JavaFX shown here; } My VMOptions (stored in the default launch.json file) are as follows; However, I keep getting the following I’ve followed countless tutorials and ensured that all the syntax and file locations are correct. Any help is appreciated. Answer Put your JavaFX SDK in a location without a space in the path

Dynamically adding nodes in JavaFX

I’m trying to build a chat application that implements Group chat in JavaFX. I want to make a Scroll Pane inside of a Border pane that will contain all Groups in which the User is member of. The Groups icons (ImageViews) need to be added dynamically(cannot be done in Scene Builder) to the Scroll Pane(inside of a HBox) as the

how to compare input with file data

I’m trying to compare user input name to the exists names in the file javaFx if it the same name will get alert if not another window will appear. but I always get new window even if the name exists any suggestion? Answer You want to display an alert if the same is already present in the info.txt file. Otherwise,

Uploading and displaing an image using JavaFX

I’m working with JavaFX, where I have written a code that contains display Image, through I want to display the image on my scene, but it’s not working. The image doesn’t display. When I’m using the getAbsolutePath() it also displays an error. Although 70% of my coding is done, I’m just stuck with displaying images on the scene (without uploading

Advertisement