title: Representing swing components in UML class diagrams
body: <p>I have some questions regarding the representation of the gui objects in uml class diagrams. </p>
  
  <p>For example if a have a class which extends the JFrame, then i will design the UML class diagram with the inheritance symbol, but in the JFrame, i do not need to write down all of it's class variables and methods, but only those whose my class will use right??</p>
  
  <p>Second how will i represent that my class will use a specific layout manager? With the association symbol, i quess but i am not sure.</p>
  
  <hr>
  
  <p>Say for example I have a package named <code>gr.mydomain.exampleproject</code>, and I have a class extending the JFrame. </p>
  
  <p>Is the following approach correct or do I need to put the JFrame in a separate package (<code>javax.swing</code>)?</p>
  
  <p><img src="https://i.stack.imgur.com/0XlPq.jpg" alt="enter image description here"></p>