Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Represnt Java swing classes in UML class diagram

I’m working on java gui application consist of 17 classes, and I used java swing components in almost all classes, also I use a new compnents from external library. My Question is: is it neccessary to include all swing classes? Or just I can draw class diagram for each class with only the methods and variables like int ,string ..etc ?

I searched online, but the responses varied. Some sources suggest including all used classes, while others advocate for focusing solely on depicting the relationships between custom classes..

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The good UML practice is to have smaller diagrams each having a clear focus.

The idea of having one class diagram with all possible classes, including library component, is a fundamental misunderstanding of modelling that leads to diagrams that nobody can understand except their author, due to the complexity.

Typically, the practice is to is a language profile in UML that defines the common language specific types, and show only library classes that are really needed in the diagramme.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading