Questions tagged [javafx]

JavaFX is a software platform for creating and delivering rich internet applications (RIAs) that can run across a wide variety of devices. From [Wikipedia JavaFX](https://en.wikipedia.org/wiki/Javafx)

JavaFX is a software platform for creating and delivering rich internet applications (RIAs) that can run across a wide variety of devices. The current release has support for desktop computers and web browsers on Windows, Linux, and macOS.

Borrowed from Wikipedia JavaFX

37 questions
67
votes
1 answer

What are these different Java versions for?

I am just about to start my Java journey, ( I've already dabbled in C++) but I am getting really confused about all the different versions of Java: JavaSE JavaEE JavaFX etc. Can someone explain these in detail?
Patryk
  • 1,269
  • 3
  • 13
  • 14
14
votes
8 answers

Do you start migrating your Swing project to JavaFX

I have a 4 years old project which is written in Swing + SwingX. Currently, it is still alive and still kicking. However, as more GUI related feature requests coming in (For instance, a sortable tree table), I start to feel the difficulty in fulling…
Cheok Yan Cheng
  • 462
  • 2
  • 4
  • 11
11
votes
3 answers

Using MVC in a Java app

I need to write a cross-platform GUI application to process (in multiple threads) and visualize fairly large quantities of data. Ideally the application should be relatively fast and look good. The app's interface will consist of a table widget, a…
egor
  • 121
  • 1
  • 1
  • 5
10
votes
2 answers

JavaFX - the right way to use Properties with domain objects

JavaFX has provided a bunch of new Property objects, such as javafx.beans.property.DoubleProperty which allow you to define fields which can be automatically observed and synchronised. In many JFX examples, the MVC model class has a number of these…
pjm56
  • 101
  • 4
9
votes
2 answers

Does JavaFX have a future?

I have not intended to hash and rehash the same matter, but just to decide, what to learn first (JavaFX, Flex, HTML5, etc.) I would pull through a kind of survey, especially as the recent similar questions here came out since at least one year. So,…
Albert Galiev
7
votes
1 answer

Good design patterns within JavaFX -- MVC?

I have used a lot of JavaFX and am familiar with the technical aspects. Now, as I foray into a very large application with hundreds of views, I want to make sure I start strong with a solid design. This is purely a client application, backend is…
skex
  • 71
  • 1
  • 2
7
votes
1 answer

JavaFX 2.0 vs Qt for cross platform stand-alone application

I need a bit of advice from you developers who deal with cross-platform applications (specifically programs with a GUI). I will be creating an application soon that needs to be cross-platform and so I have done some preliminary research on two…
FooBar
  • 183
  • 1
  • 4
5
votes
2 answers

Singleton design for small/medium sized music player project

I am refactoring the code for a music player I wrote in Java/JavaFX. I have a few key objects which are accessed throughout the program by various other classes. I think there will be four or five by the time I finish moving everything around.…
JoshuaD
  • 189
  • 1
  • 7
5
votes
1 answer

How to implement the MVC design pattern with JavaFX written in pure Java

I am currently in middle of designing a backup application in JavaFX written in pure Java (meaning without Fxml) . I am having trouble implementing the MVC pattern for the following reason. The way I understand it is that the view has to be separate…
SteelToe
  • 1,539
  • 3
  • 13
  • 22
4
votes
3 answers

Why instantiate and initialize an object without saving it into a variable?

Sorry if I got the wording wrong in my title, but it would be easiest to provide an example in JavaFX primaryStage.setScene(new Scene(grid, 300, 275)); Now from what I understand, this code is instantiating and initializing a Scene object, but it…
Pat Nak
  • 41
  • 1
  • 3
4
votes
1 answer

TreeItem containing non-String object displaying strange text

Hello StackExchange community! This is my first post and appreciate any help anyone can offer. I'm new to Java, and I'm sure this issue is simply due to my misunderstanding of the fundamentals. I have a JavaFX (Java 8) window with a TreeView filled…
Josh Jennings
  • 53
  • 1
  • 4
4
votes
1 answer

Should I use JavaFx properties?

I'm usually very careful to keep my Model, View, and Controller code separate. The thing is JavaFx properties are so convenient to bind them all together. The issue is that it makes my entire code design dependent on JavaFx, which I feel I should…
sinθ
  • 1,311
  • 15
  • 25
3
votes
1 answer

What's the best way to organize JavaFX 2.0 code?

In every example I have seen yet almost all of the GUI code is written in the start(Stage stage) method of the main class. Is this the best approach, or is it OK to subclass the Stage class and make your own thing? If the latter is OK, wouldn't the…
verin
  • 31
  • 2
2
votes
2 answers

How to go about calling parent's instance method from child instance?

This question is a continuation of a question originally posted here. I'm trying my hand at creating a Snake clone with JavaFX. One of the requirements for the game is to have a sort of powerup food, which increases the velocity of the snake. For…
deni3278
  • 31
  • 4
2
votes
2 answers

JavaFx : Is there difference between String and StringProperty in Model Classes?

I'm trying to follow MVC concepts when i develop my application ,but I'm confused between Using String or StringProperty in Model classes. Example one : public class User{ String name; String password; public String getName() { …
1
2 3