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)

Filter by
Sorted by
Tagged with
1 vote
1 answer
158 views

Extract common code into own module

I'm finding myself in a situation where I need to define common behaviour and implement it depending on the environment (minecraft server or javafx runtime). The simple graph below describes my idea. ...
  • 11
2 votes
2 answers
1k views

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, ...
-5 votes
1 answer
83 views

Java version: When to migrate? [closed]

About 4 years ago, where I was working, software was still being developed with Java 7 + Swing. It took me a couple years, but we could finally migrate to Java 8 + JavaFX, two years after that. Now ...
0 votes
0 answers
160 views

How to avoid circular dependency from abstracting navigation in desktop application?

I am trying to abstract some functionality from my desktop application (JavaFX) for changing views. So, what I am thinking is: Navigator interface with methods like goToAccountsOverview(), ...
1 vote
1 answer
600 views

Where do JavaFX FXML controllers belong in an ECB architictural design pattern?

I am wondering where does the fxml controller belong in the Entity-Control-Boundary model? When designing a JavaFX application with the help of Scene Builder, Scene Builder generates an fxml file ...
-2 votes
1 answer
95 views

Should i use Sqlite integer as a datatype for my primary key column?

I am developing a library management software in javafx and I am using sqlite as a database for that. I have to store data of almost 50000 books. And all those books would have a barcode. Obviously, ...
-2 votes
2 answers
588 views

How to put interface created with JavaFX on C code? [closed]

I am creating server/client application. The server and client parts should be written in C language. However, for user interface I would like to use javafx. So, the question is it possible to combine ...
0 votes
1 answer
2k views

Is it possible to add Service layer in MVC pattern?

I'm working on javaFX project using Hibernate and H2 database,I'm trying follow the concept of MVC design pattern ,so I have created 3 packages : models :contains POJO classes 2.1 views.fxml:...
2 votes
2 answers
4k views

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; ...
1 vote
0 answers
121 views

Proper Separation of Concerns in GUI Development

The Situation I'm developing a JavaFX desktop application that can be described in three parts: The Data The GUI The Process The GUI is a means of seeing and editing the data and the process is a, ...
  • 303
1 vote
1 answer
363 views

how should the MVP pattern handle views created at runtime?

how should the MVP pattern handle views created at runtime ? for example There is a mainView (that has a model and presenter) that needs to display a list, each item in the list is represented by it'...
  • 1,052
1 vote
0 answers
239 views

GUI that builds an object - how to design the GUI?

I'm currently writing the GUI for my application. As I understand in a MVC-like application are the following components for each feature: Business data: a complex object hierarchy containing all the ...
  • 261
5 votes
2 answers
512 views

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 ...
  • 189
0 votes
2 answers
166 views

Which End should start first? (MVC)

I am developing a small application and trying my best to make it as professional as possible in regards to design pattern etc. It is a JavaFX app, and my app works fine but I am uneasy at the fact ...
  • 179
5 votes
1 answer
17k views

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 ...
  • 1,539
7 votes
1 answer
9k views

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. ...
  • 71
4 votes
3 answers
4k views

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 ...
  • 41
2 votes
1 answer
2k views

Why Does JavaFX's GridPane Attach Properties of the Layout to the Components?

I am currently learning JavaFX and I came across a very strange API for laying out GUI components. It is perhaps best explained by it's javadoc: To use the GridPane, an application needs to set the ...
  • 879
0 votes
1 answer
755 views

How to design MVC in JavaFX with respect to performance of the non-GUI task

I'm working on a huge application and we got some serious troubles regarding the performance of the software. I don't want to bother you with too many details, so in short: in one JVM runs the GUI (...
  • 101
4 votes
1 answer
8k views

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 ...
1 vote
0 answers
133 views

How to design an interface for two similar but distinct objects

I'm designing an API for a JavaFX control to be submitted to the ControlsFX library. This control is called the ViewManager, and its purpose is to hold a collection of View instances, all of which ...
  • 1,037
0 votes
1 answer
997 views

Designing the model layer to be serializable

I am creating simple desktop application in javaFX 8 and I would like to be able to save the state of the model and load it next time the application starts. Therefore I am implementing the ...
  • 103
1 vote
3 answers
1k views

Best approach to implement an update operation of a container object?

I have an Invoice object wich may contain several FacturedServices objects stord as a list. In may interface, the user can edit an Invoice object, delete add or edit its FacturedServices list. Whe ...
0 votes
2 answers
702 views

Develop GUI and logic in a team the right way? [closed]

I am planning to start a small project with a friend. I will be developing the GUI using JavaFX in the MVC pattern and he will be responsible for the model/logic. My question is: how can we achieve a ...
  • 162
0 votes
1 answer
2k views

JavaFX with or without Rich Client Platform

I'm starting to delve into JavaFX and have heard that one of the cons of java fx is that there isn't a mature rich client platform or application framework ala eclipse rcp or netbeats platform for it. ...
  • 109
1 vote
1 answer
457 views

MVC: How to Implement Linked Views?

I'm developing a java application to visualize time series. I need (at least) three linked views, meaning that interaction with one of them updates the others. The views are: A list represents the ...
  • 111
4 votes
1 answer
884 views

Should I use JavaFx properties? [closed]

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 ...
  • 1,311
1 vote
1 answer
952 views

Do I have to release source code because I'm using JavaFX?

I'm using JavaFX for gui of my app. Its license is GPL+Linking Exception. GPL requires me to release my source code. But what's the linking exception?? (I'm just using it as a library. Not modifying ...
  • 13
0 votes
1 answer
2k views

How to minimize the usage of static variables and objects

I'm trying to implement this JavaFX code where I want to call remote Java class and pass boolean flag: final CheckMenuItem toolbarSubMenuNavigation = new CheckMenuItem("Navigation"); ...
11 votes
3 answers
14k views

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 ...
  • 121
7 votes
1 answer
3k views

JavaFX 2.0 vs Qt for cross platform stand-alone application [closed]

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 ...
  • 183
10 votes
2 answers
2k views

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 ...
  • 101
14 votes
8 answers
14k views

Do you start migrating your Swing project to JavaFX [closed]

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 ...
9 votes
2 answers
8k views

Does JavaFX have a future? [closed]

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 ...
user avatar
3 votes
1 answer
1k views

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 ...
  • 31
67 votes
1 answer
21k views

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 ...
  • 1,259
1 vote
1 answer
199 views

Languages with similar features to JavaFX Script

I just completed a small project in JavaFX, only finding that it has been declared dead by Oracle. JavaFX Script actually seemed to be a pretty interesting language with some neat features for its ...
  • 2,262