University student here currently working on a tournament application project, and I’ve got this current issue with GUI: My matchmaking algorithm takes the player’s numbers and matches the lowest number with the highest, for example if we have 8 players then we will have; P1 vs P8, P2 vs P7 and so on. I am currently trying to display this
Tag: javafx
Try/Catch isn’t catching my null Image exception from URL in JavaFX
Okay so, I have a Circle component which I assigned in SceneBuilder. I want to fill this Circle with an ImagePattern object, however I’m running into a weird problem. I’m assigning a lot of images from lots of URL’s in a database and they’re only set when I click them, and some of the links appear to be broken, but
JavaFX event on Mouse Wheel Finished for ScrollPane
I have a ScrollPane with lots of elements on it, (Same one as this JavaFX setHgrow / binding property expanding infinitely) and initially I was planning on using the setOnScrollFinished(this::scrollFinished); event, however I’ve now discovered through research that this only applies to touch gestures, and trying to find a compromise for the MouseWheel hasn’t been great and I just find
Unable to delete .mp3 file due to javaFx MediaPlayer
I am working on my Hhighschool capstone. It is a program where the user can download songs from the internet and store them in an organized manner and play them. My program must contain a feature where the user may delete a specified .mp3 file by simply pressing a button. I have tried the .dispose() method on the MediaPlayer, and
JavaFX app overwriting files while being open causes exception
I have a runnable jar file (with a lib folder housing all the dependency jars). This is located on a network share which anyone that has access can run from. This works great except one huge caveat. If I want to deploy a new version of the software, I have to ask everyone to exit the application first. This is
Why are my JavaFX buttons unevenly spaced?
I’m new to JavaFX, trying to build a GUI program that displays a bill for a table at a restaurant when you click on that table. The spacing is off between the table buttons and I’m not sure why. The GUI class for my program: Answer From the Javadoc: Row/Column Sizing By default, rows and columns will be sized to
How to package JavaFX + Spring Boot application via jpackage correctly?
I’m having trouble packaging my project using jpackage by badass jlink plugin. Project contains Spring Boot, which works with JavaFX via FXVeawer. And with Spring Data application works with Database. My build.gradle: Application is packaging, but due to error Caused by: org.springframework.cglib.core.CodeGenerationException: java.lang.IllegalAccessException–>module spring.geodemo does not open spring.geodemo to unnamed module @39cd0bac does not start. I have no idea what
“update controller” from FXML in IntellIJ for javaFX project
I used to see the option “update controller” in the menu after right-clicking on an FXML file generated by scene builder in a JavaFX project but now it disappeared, how to make that appear? Answer The FXML Manager plugin might be what you are looking for: go to File -> Settings -> Plugins -> Marketplace and search & install FXML
Using Tree View in Java to implement a view of a filesystem with hierarchy
I’d like to create a tree view that displays a mod folder (the root directory) and the mods inside, but not the mod folders contents. Right now I can only get it to display all of the mod levels but I think its my method BuildChildren(). Any help would be appreciated. I’ve included the code below. Any help would be
JavaFX trouble importing [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year. Improve this question I am new to java and I would like to convert a buffered image to a regular image object and then