Is there any tool / software that separates Java Swing GUI logic and business logic?

I am working on a Java Swing project. Its design is rather poor. I have been given the task of making its design better. First of all, I thought that I would cancel Java Swing and business code following the MVC pattern.

Running this material manually seems error prone. Is there any tool / software that separates GUI layer code (written in Java Swing) and business-level code (written in the Java core).

+3
source share
4 answers

As far as I can tell, the answer to this question is: "No, there is no such tool."

, - . , "-" " ".

, , , -, , , - , .

. , , , IE. MVC - , , .

MVC Smalltalk, Xerox Parc, .

+3

, . , , .

, . , . , , , ( ). , .

, , , .

+2

, .

- . , , , , , .

IDE . Eclipse NetBeans , , .

, , - , A ( ) B ( MVC). . , (, , ) - , , , Model, View Controller. , , .

.

+1

I also do not know a single tool. And, like the others here - like - we note, I think that such tools will ultimately force programmers to be redundant. We don’t want this, do we.: - D

But, manually checking if you really managed to separate the code should not be difficult. Just make sure your "business part" does not import swing packages:

  • find in files "swing"
  • move all these files to one package
  • check if there is any "business logic" there => pull it out
  • ...
0
source

All Articles