javafx
How to make random numbers not repeated
For example, there is a code that works when you click
int random = (int)(Math.random() * 5);
How to make sure that when you ... й клик: получилось 4
третьий клик: получилось опять 4
How to make sure that the numbers are not repeated 2 times in this way
Multithreading in JavaFX. Not on FX application thread
I have a thread
Thread skillshowin = new Thread(new Runnable() {
@Override
public void run() {
try {
... hread-5" java.lang.IllegalStateException: Not on FX application thread; currentThread = Thread-5 when executing skill.setText
How JavaFX controller works
Tell us where to read, or better explain what the magic of the controller is. At first it seemed to me that JavaFX is a frien ... oint was touched upon. But all the manuals say how to use fx:id in methods, referring to them via fxml. But it doesn't fit...
Maven doesn't work with JavaFX
I can't start the project with the Maven
build in any way, it constantly swears with the error
java.lang.reflect.Invocat ... adInfoBotFromFile(file);
}
}
Moved the xml files to the resources folder
Can you tell me what I'm doing wrong?
Working with the AnchorPane container in JavaFX/Scene Builder
Hello, comrades.
Let's get right to the heart of the matter, my goal is to create an AnchorPane container (I work in SceneBui ... els),
but it is in the percentage ratio that I can not specify,
I can only stretch this container to the size of the window.
JavaFX application crashes when trying to make the controller a bean
From the answers to the question How do I provide access to bins for classes that are not the entry point to the application ... ll application code is available on the Bit-bucket repository.
I also attach a link to the application code in working order.
transferring data from one window to another JavaFX
Here on the registration page I want to pass let's say the name to the next window like this:
@FXML
private TextField nameFil ... nice to explain how to use the constructor and initialize together, and in principle, if you can, give comments on the code.
Connect the OpenCV library to the maven JavaFX project on intellij Idea
A window application JavaFX is being developed in Intellij Idea based on maven - a project using the OpenCV library.
Before ... searched half of the Internet - I will not find the reason for the error... What else do I need to connect or configure here?
Why does a white window appear instead of the usual JavaFX
When opening a new window, an empty white window opens instead of the required fxml file
How to determine that the TableView table is not empty
There is a table created in javafx:
TableView<Test> tableView = new TableView<Test>();
It is initialized when th ... o longer null.
Any sizing functions,... of the type
tableView.getItems().size()
tableView.isEmpty()
They also throw Exeption
How do I hide a javafx app in the tray?
I am writing an application for controlling the backlight in javafx. Naturally, the app gets in the way in the taskbar, so I ... und only one question on this topic, which has the necessary code example, but it is too outdated and does not work properly.
How to overcome JavaFX application class must extend javafx. application.Application
Writes when executing code:
Error: Main method not found in class _Mixa01.MyClass, please define the main method as:
... ain(String[] args)
or a JavaFX application class must extend javafx.application.Application
What is it and how to fix it?
How do I create a jar file in idea?
I have a rather large javafx application, but when creating a jar file, it does not start. It's a pity, because I spent 3 mon ... ter all this, the jar file still didn't run. Everything works fine in the development environment. What could be the problem?
Image in ImageView JavaFX
There are 2 *.fxml files, each of which has its own *.java file attached. In one.fxml there is ImageView fx:id="image"how to ... odUtil.java:275)
at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1771)
... 52 more
Help me please...
What does the operator mean?
I'm learning JavaFX. I ran into the operator :: . Please explain what it means.
Example:
public static LocalDate parse(Strin ... urn DATE_FORMATTER.parse(dateString, LocalDate::from);
} catch (DateTimeParseException e) {
return null;
}
}
JavaFx: TreeView
How can I make such stripes (hatching) in TreeView?
I Googled as much as I could, there is no hint of such a thing anywhere
Javafx:
swing:
Uploading an image using FileChooser
I need to upload an image using FileChooser.
However, it loads in File. Can I somehow load Image right away, or somehow conv ... meException: java.lang.reflect.InvocationTargetException"
Is there any way to avoid the error, or do you need another way?
How do I add margin or padding for ImageView in JavaFX using code (not FXML)?
I want to add a white border around the ImageView.
One solution is to use a Button.
Tried using StackPane:
StackPane st ... he image goes beyond the StackPane.
What is the reason for this?
Is there another option to make a border around the image?
I can't create a ServerSocket on any port. What is the problem?
Exepshen itself:
Java.net.BindException: Address already in use: JVM_Bind
Platform: Windows 10 x64
IDE: IDEA.
java ver ... at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)
How to properly interact between windows in JavaFX
There is a main window with a field and a button. Clicking on the button opens a modal window with a text field and a button. ... tly?I don't want to make a bunch of static fields, maybe there is some more correct way?
(both windows are different classes)