Questions tagged [mvvmfx]

mvvmfx is an open-source framework to implement JavaFX applications following the MVVM (Model-View-ViewModel) pattern.

From the mvvmFX home page:

MvvmFX is an application framework which provides you necessary components to implement the Model-View-ViewModel (MVVM) pattern with JavaFX.

The home page contains links to downloads, tutorials, documentation, source code and a bug tracker. Note that the framework is considered to be feature complete.

14 questions
1
vote
1 answer

Javafx mvvmfx textarea append

I'm having an issue with my JavaFX application. Problem is that I can't use append function, only setText. Why this is a problem is because auto scroll is not working without append. What is the way to update or auto-scroll my TextArea each time new…
Gaxt
  • 45
  • 2
  • 10
1
vote
1 answer

Model as a "domain model" with ModelWrapper class in mvvmFX library

I want to ask you about model and ModelWrapper behavior. According to Wikipedia article about model component of MVVM: Model refers either to a domain model, which represents real state content (an object-oriented approach), or to the data…
1
vote
1 answer

Can mvvmFX objects (View, ViewModel, Model) be created using CDI?

I think about using mvvmFX framework for JavaFX but I don't understand if it supports CDI. In wiki page about CDI is not ready. Could anyone say?
Pavel_K
  • 10,748
  • 13
  • 73
  • 186
0
votes
0 answers

Can't build artifacts javaFX application with mvvmFX framework

I cloned source code from https://github.com/sialcasa/mvvmFX and trying to build artifact from module mvvmfx-spring-boot but when I run the jar from output nothing happen so I run it from cmd java -jar xxx.jar and it show Error: Could not find or…
0
votes
1 answer

How can I sync model and view-model in JavaFX chat app

I'm building the chat application using JavaFX and MvvmFX and got into little system design challenge. I want to avoid using FX Observable lists in my model due to my model can be updated in multithreading environment and I don't need my model be…
nettleclaw
  • 101
  • 1
  • 6
0
votes
0 answers

mvvmFX can't find FXML file in a maven project

I'm coding a JavaFX project with Maven and the mvvmFX Framework, on the wiki it's mentioned that you need to put all View.java and View.fxml in the same folder, but that's not possible with the Maven architecture, however it's also specified that it…
Artcann
  • 15
  • 1
  • 4
0
votes
1 answer

Can Not Start MvvmFX java.io.IOException: Error loading FXML - can't load from given resourcepath

I am tyring to use mvvmFX ( git link ) on Maven JavaFX project It's just a very simple project to load an fxml file using de.saxsys.mvvmfx.FluentViewLoader This is the sample project link (git) Sample Program I am using : Liberica JDK 14 OpenJFX…
Wiljos
  • 31
  • 3
0
votes
1 answer

Event does not trigger using javafx and mvvmfx

I' trying to build an application using javafx and mvvmfx framework to compute and display CVRP Problem but when I add an event listener on a Circle, it is never triggered. scope.subscribe("STOP_LOADED", (key, payload) -> { …
0
votes
1 answer

How to use ViewModel when Model has JavaFX properties?

Here it is said that we have 2 options to implement MVVM with JavaFX - it depends whether we want to use JavaFX-Properties in our model or not. As I understand if my model doesn't have javafx properties then I add fx properties to ViewModel.…
Pavel_K
  • 10,748
  • 13
  • 73
  • 186
0
votes
1 answer

JavaFX ListView with different enums

I'm trying to use different type of enums in the same ListView. I got interface for enums public interface Item { int getId(); String getName(); } Then I create enum public enum Items1 implements Item { Item1(1, "Item1"), Item2(2,…
p_som
  • 1
  • 1
0
votes
1 answer

mvvmFX: Changing Part of a Scene on Runtime

I'm building a JavaFX Application with mvvmFX. I have a scene with two panes. Both panes should include any.fxml . I would like to change the included panes at runtime. So I've found this solution: JavaFX/SceneBuilder - Changing only PART of a…
Piepette
  • 21
  • 3
0
votes
2 answers

Mvvmfx: initialize-method causes NoClassDefFoundError: javax/annotation/PostConstruct

i'm trying to implement a mvvm-pattern with JavaFx. To do so i'm using the mvvmfx-framework. To use data from a model i've tried to use the NotificationCenter. When inserting an initialize-method in my viewModel to subscribe to messages i get an…
Piepette
  • 21
  • 3
0
votes
0 answers

Using kotlin with Mvvmfx framework

I'm developing a desktop application with JavaFx. I'm interested in using Mvvmfx as a framework and wonder if it is possible to use Kotlin with Mvvmfx to avoid all boilerplate code ? Is there an example of this somewhere ?
0
votes
1 answer

mvvmFX Throws Incompatible Type in ViewTuple for Implemented ViewModel

I've created a sample project as shown in getting started documentation of mvvmFX. My MainViewModel implements de.saxsys.mvvmfx.ViewModel as intended. The content is the same as in documentation except the class name. Oddly, ViewTuple in the start…
Eray Erdin
  • 2,633
  • 1
  • 32
  • 66