Javafx Questions
Ad
Draw an aircraft with polygon coordinates in JavaFX
Could you please tell me, how can i draw a really simple aircraft with polygon-coordinates in javafx? here is some code to show you what the idea
javafx.fxml.LoadException: Controller method "MyFunction" not found
As described below, i have an eventhandler linked to textfield (text variable), and i want to call a function from this handler that
Reload Java Fx Scene?
I want to reload my scene of the java fx project. so i created a button, which has an fx-id now i want to create something, that
JavaFx msal4j NoClassDefFoundError
I am running into an exception trying to get the example code
Trying to add a JavaFX shape from another class and create it in my main class. The Class cannot be converted to node
I'm very new to java. i've been using it for the last two months. the end goal of my code is to try and create a shape and add it to the window
Setting center of borderpane form another controller class
I have borderpane as homepane (its fxml file is home.fxml). at first in center of homepane i have a hbox which contains a button called
JavaFx changing Label text color conditionally
I'm trying to change the color and text of a label conditionally. the text change works, but the color change does not. i get an
Problem integrate google firestore with Javafx project
I have created a javafx project with intellij idea and want to integrate it with google firestore/firebase. but i am having problem. i
JavaFX trouble importing
I am new to java and i would like to convert a buffered image to a regular image object and then display to the screen. i am currently following
javafx TreeTableView string array columns
All existing answers were using a class object to display multiple columns. do i have to use a class? can i just use a string array like c#'s
Ad
Gluon Mobile: using ExoPlayer
I am working on an android app with gluonmobile. for one feature i need a exoplayer. so i included the dependency
Receive push notifications on a Java Cross Platform Desktop app
I'm developing a java desktop app, using javafx and i'm trying to receive push notifications from a server. my first approach was to use firebase.
How can I change the scene By pressing a specific key(b) on the the keyboard?
In my application, there are two scenes: mainscene and bossscene where mainscene is used when starting up
Obstacles are removed faster than the bullet animation passes
Situation: the tank has a shot() method and a code that checks if the bullet hits the obstacle after being fired.
Java vs JavaFx vs Android SDK in Intellij Idea
How should i choose among these buttons: java vs javafx vs android sdk in intellij idea start up? what are the difference among them? can you guys
Filling a Tableview with some data from JSON
I have a tableview in javafx that i want to fill with some json data. the json that i receive from the server looks like this:
JavaFX and IntelliJ no errors althought the documentation says I should have some
I'm currently following this tutorial: https://openjfx.io/openjfx-docs/
Can't find Method in handler
I am trying to create a basic ui with javafx. the problem is only that my handlers can't be found in my controller. my ui.fxml:
Displaying Triangle in JavaFX using Inner Class
I'm trying to create an inner class to create a triangle based on given variables and then display it in a javafx scene. my current code is shown
Flash a rectangle in JavaFX
How can i cause a rectangle to flash in and out of view in javafx. i am making a word search game, and i have a 2d array of randomised
How to recompile and launch Java FX application with Maven and Intell IJ idea?
In tutorial for java fx application with maven, only following code was in pom.xml: <?xml version="1.0"
Ad
Can't find Main class in Jar in Kotlin application build with gradle
I have a javafx kotlin application build with gradle. it's a file containing main method: package com.grined.toptal.invoice
Java FX: Stack pane children width in percentage (FXML only)
Novice in java fx. trying to create the following layout:
JavaFX FXML edit Elements in different Class
I have a fxml file with all the elements like buttons, labels, textfields etc. for the fxml-file i have a
Dynamically fill ListView from data model in javafx
I've created a method to fill listviews with objects that fit the correct criteria: public void
Why did the button in JavaFX application turn white?
I want border of a button to turn black when you click on the button. i use setstyle () to do this, but for some reason the button turns white.
JavaFX - How to check user input in editable TableView
I am wanting to check that the user has entered an integer, if a string is entered or the field is blank i want to display an error. i am
JNI error occurred after converting jar to exe launch4j
I created jar file of my javafx application. jar file is working perfectly fine without any error. but when i converted jar into exe using
How to center my "inputPane" using JavaFX
How can i center my panel inputpane in a borderpane, in javafx? here's my code. public class
Implement Spinner in TableView to show/edit value of custom object
I have an observablelist of custom objects recipeobject_fermentable, whose properties i am displaying to the user
animationtimer javafx button won't update or refresh
I have a problem with my javafx application. it works in just command line, but when making a javafx setup i get a problem. every time i
How to edit JFXSpinner inner text
Is it possible to change the way the jfxspinner progress text is displayed. i don't want it to be displayed as a percentage but as an
Ad
loading empty window javafx
When i run this code it supposed to open a new window with the fxml loaded but it just opens a window that is empty. code for startup:
Strange JavaFX NPE "Location is required"
I am building a large javafx application with a lot of scenes and am now trying to deploy the application with maven. maven expects
Java int from textfield
I'm new to java. i'm trying to get an int from a textfield for my calculator in javafx. i have 2 textfields where people can write a number:
FXML declared custom control can't access declared fields at initialization time
I'm developing a control using javafx / fxml that can then be used like this: <mycontrol mynumber="123" />
How to exit JavaFX fullscreen stage on mouse click?
There is key combination method available as follows: stage.setfullscreenexitkeycombination(keycombination.control_down);
hbox does not fit borderpane top
My hbox does not fit into my top borderpane. i dynamically entered my hbox like this: url hboxurl =
JavaFX allow user only to edit certain areas of text
I'm designing a custom xml view with javafx. imagine the following xml. <cd> <title>empire burlesque</title>
JavaFX Toggle MenuButton
Is there a javafx menubutton (specifically a splitmenubutton) that also allows for toggling its selected state? the swing equivalent would be the
JavaFx: TreeTableView arrow reference
How can i get a reference to the expand/collapse "arrow" in a treetableview? i cannot provide any code, since, i didn't really know what
JavaFX print the same XYChart.Series in two charts
Starting from this question javafx linechart hover values
JavaFX change Text by clicking on Button
Following task: i want a text with the letter 'l' and two buttons, one to "increase" and one to "decrease" the letter.
Ad
Resizable Buttons in 4*6 GridPane
My target is to build a window in javafx where there will be 24 buttons, such way that: the buttons should be placed in 4x6 grid
How to pass StringBinding and ReadOnlyProperty as generic arguments?
I have two methods in my javafx-code for creating textfields with bindings. i have to bind readonlyproperty or
How to force my custom skin to be used by all buttons in my JavaFX application?
Suppose i wrote a new skin for button. in javafx 8 it can look like: import com.sun.javafx.scene.control.skin.buttonskin; //
Update JavaFx grid size
How do i change my javafx grid? i want to be able to add/remove rows/columns but i am not sure how to do this. <gridpane
Barrel distortion effect for image (JavaFX)
I'm looking for some way to set background image with barrel distortion effect(fisheye/fov) for node using javafx. i found algorithm with pixel
JavaFX can't load recource
When i try start resource i get exeption: java.lang.illegalstateexception: location is not set. even
Video Player JavaFx
I am building a video player using javafx in netbeans ide. i need to set the label shown in the screen builder below to display the total duration
How do I get the ImageView contained inside a Pane?
Situation i have an application which contains a gridpane thats composed of multiple panes. inside of every pane is an imageview that
Hello, I want to create a javafx project, but does it need Database?
I want to create a javafx project, but does it need database? when i create this program save these name when i input this name and other.
Hello , I want to create a javafx TextField where the user can only input in the current order A11111111A
So the first and last input should be letters, and between them should be only numbers. here is my code :
How to convert JavaFX project to Maven correctly?
I wrote javafx project in eclipse ide, it worked correctly. once i converted it into maven project, my fmxl files stopped opening. however,
Ad
Set action when an item from combobox is selected
I am working on a project where i have combobox in a pane, which has "games", "albums", and "movies". i want
Custom item in ListView JavaFX
I have question about listview in javafx. how i can do custom item in listview like this :
java.lang.UnsatisfiedLinkError: URI scheme is not "file" with javafx:jlink
Hello i am using jnativehook library with javafx running with
MVC with JavaFX without client-server-architecture
I've got a pretty general question. for my work i have to implement a demonstrator application using mongodb, java and javafx (and yworks). so
Synchronize scrollbars of two JavaFx WebViews
I'm using two webviews to display two versions of html formatted text for comparison. the two display the same amount of text (same
JavaFX Put a node in a separated class file
How can i put the gridpane named "sellingpane" in a separate class file but still use it in this class? i want to be able to change the
How to have an arraylist of general objects as argument?
I have a method to remove an object from the list, this is used to create a listview so the object is removed using the index of the
Switch between themes in JavaFX
I developed a java fx application and i use css for styling. the app uses the default colors for almost everything, so i've found that by simply
TabPane is not working on my Application
I have a project from uni where i have to make an application with java (in a model view controller format), and i want to make tabs in my
How to avoid blank entry into signup textfields which stores data in mysql db in Java? How to avoid logging in without filling username and password?
I am confused by the two questions on the title. what function do you recommend me to use in the following controller class that avoids blank
I need multiple instances of a Controller in a Spring/JavaFX app
I am trying to integrate javafx with spring for the autowiring capabilities of spring. however i need to have multiple instance of
Ad
How to get last edited items in editable TableView in JavaFX
I encounter a problem with my tableview in javafx. the first state of my table view is that:
Add new Form on Click which contains (DatePicker, choiceBox, TextField, labels, and text with ID) - JavaFX
How i can make it as form and by clicking "add" to create new form. @fxml private datepicker date_1; @fxml private
JavaFX TreeItem css style for different class field
I have treeview filled by my own tree. in class node i have field "type" which is one of nodetype. the problem is that i want have style for each
JavaFX to monitor/record events performed on a web page
I have a requirement to record events performed on a web page. eg. filling registration form. recorder should capture the
Java FX arithmetic expression in a button
Hi i want to do a button that takes two input fields and trying to do the following : chick if it's a number .(so it can devide the
No suitable method found for addListener(<anonymous ChangeListener<java.time.Duration>>)
I've trouble with the following code. it's showing error while implementing the following code section. it's a code on javafx mediaplayer
preventing the backspace key from deleting characters in a javafx textarea
Im trying to prevent backspace from deleting characters in a javafx textarea. keyevent.consume should do this but it doesn't prevent
How to marshal JavaFX Image and save its absolute path in xml
So i've been working on a address manager app and came across a situation where i've to save each person's image, with other data, into an
Proper way to terminate thread
I'm trying to write chat application based on sockets but i'm a bit confused, how to actually stop my server. here is my
How to convert a ImageView to InputStream
I have an imageview that contains an image, what i need is to make a getimage() of the imageview and convert it to an
Java get UserName from UserList and setItems ComboBox
I have this: @fxml private choicebox<string> choisedata; observablelist<string> choiseuserlist =
Ad
Custom CellFactory adds new nodes
I have a weird bug and i cant find the appropriate solution. i wanted to add a treetableview to my application that shows a task taxonomy. since
JavaFx window to AWT window
I wrote a programm and i want to disable fullscreen on mac, but standard apple library doesn't work. because it needs an awt window instead of my
Repaint BorderPane (javaFx)
I have an application that can create a rectangle that decreases in size for example a lapse of time of 10 sec, but here is when i try to shrink
Javafx bufferedreader only reads first line
I have written a method for my login page to check the user in a text file where the usernames and passwords are preserved. what the program does
JavaFX Media Exception. Could not create player
I've been trying to make a simple gui player in java with javafx. it works fine until i try to open a file. it just throw a stack and do
Javafx tableview checkbox to hide unwanted rows?
I'm trying to do some reports by hiding some rows from a tableview (i made in scenebuilder) by using a checkbox. if the object from tableview
Javafx from a thread notify events to controller class for setting Label,Textfield based on model
In thread i run some code and i need update javafx ui elements that are in jsonoverviewcontroller. i don't want to pass ui elements in model or
JavaFX TabPane CSS : delete blue selection zone
I'm looking for deleting the blue selection zone around a selected tab in javafx css. here is my problem
How to add a combobox to a tableview in Kotlin using TornadoFx
I am trying to add a combobox to a tableview using tornadofx; the closest i have gotten to something that i think should work is this:
Javafx call method from controller to application thread
I am trying to create a little messaging program with activemq. the message should be shown in a little window in the right bottom corner. this
JavaFX 8: Putting a default "x" mark via css if the checkbox is deselected
I want to be able to control my javafx checkbox mark shape on states selected and deselected via css. i can control the mark properties in
Ad
Line drawn over GridPane won't show
I need a line separator in a gridpane. not all lines visible, but rather one single in the middle. the way i'm currently doing it is
JavaFX - Set bounds in LineChart
I created a linechart with varying bounds for the x axis and would like to modify the x axis bounds so these will fit what i want. i've tried
Updating dynamic gridpane in javafx. Once it's drawn, it doesn't update again with the updated parameters (row,column)
I am trying to design bus seat structure in javafx application using scenebuilder. where drawbus is a gridpane which is
Is it possible to have a link in a piece of free flowing text in JavaFX?
I'm using labels for some long pieces of text that explain things about my application and i want some of those words to be links that can trigger
populate values from database into ObservableList in javafx
How can i properly populate values from a mysql database to an observablelist in javafx? i am using:
Bind label with two different values-javafx
I have a live javafx user application which has a label : no of answers/no of questions , no of answers increases as the
JavaFX and Swing Integration Issue
I am creating and application in javaswing but later on switched to javafx and added all the modules and other swing frame in javafx maven project
How to make a Button on a JavaFX's browser?
I'm trying to make a "launcher" with javafx. this
How to manually instantiated FXML controller with FXrouter, or another way?
Good afternoon all. i am trying to initiate a controller to an fxml page, but not sure how. i am currently using the fxrouter github api. i
How to make drag and drop action in JavaFX 2.2 with Swing?
I have a problem with drag and drop event on jfxpanel that on located jpanel. when i push drag message to dragboard, javafx part of application
How to access a child of an object in JavaFX
Let's say i have created an object which can have children and have getchildren() method, f.e. group(). then i created
Ad
Bringing a single stage to the front in windows in JavaFX
I am trying to create a stage in javafx that can pop up to the front in windows, while the main stage stays minimized. this only works
Add a Rectangle to root in javafx
I try to create some shapes of javafx library.. so, in the 'start' method, when i create a new circle and i add it to the root, i don't
Ad
Blog Categories
Ad