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..
>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.