Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Spring MVC be used to implement MVC pattern in Swing applications?

I was wondering if Spring MVC can be used to implement MVC pattern in Java Swing Applications. I've done some study and found Spring MVC to be used for web development.

Is there any way Spring MVC to be used with Swing Applications?

like image 578
TheKojuEffect Avatar asked May 05 '13 15:05

TheKojuEffect


People also ask

What are MVC explain how MVC is used in the Java Swing?

Swing architecture is rooted in the model-view-controller ( MVC) design that dates back to SmallTalk . MVC architecture calls for a visual application to be broken up into three separate parts: A model that represents the data for the application. The view that is the visual representation of that data.

What is MVC pattern in spring boot?

Spring MVC framework consists of four components : Model, View, Controller, and Front Controller. There are four main layers in Spring Boot: Presentation Layer, Data Access Layer, Service Layer, and Integration Layer. 6. It takes more time in development.

Which of the following aspects of the MVC pattern is used in conjunction with the database?

The Model Layer In the MVC design pattern, the model is the data layer which defines the business logic of the system and also represents the state of the application. The model objects retrieve and store the state of the model in a database.

What is Java MVC framework?

What Is An MVC Framework in Java? An MVC framework follows the Model-View-Controller pattern. In an MVC framework, the three "layers" separate the user interface from the application logic. This is done to control how information is represented internally vs how it is presented to the user.


1 Answers

Not really. As you say, Spring MVC (or Spring Web MVC) is primary targeted for web server development and thus have little to do with client side or standalone GUI applications.

That said, nothing prevents you from using ordinary Spring technologies for dependency injection, as a backend in your model, etc. Spring provides abstractions for persistence, remote network communication, transactions, security and so on that might come in handy in many projects.

Additionally, there is the Spring Rich Client Project that was released some years ago, but I do not know its current status.

like image 129
matsev Avatar answered Sep 28 '22 19:09

matsev