title: The type javax.swing.JComponent cannot be resolved
body: <blockquote>
    <p>The type javax.swing.JComponent cannot be resolved. It is indirectly referenced from required .class files</p>
  </blockquote>
  
  <p>Here is a screenshot of the error:</p>
  
  <p><a href="https://i.stack.imgur.com/8A8wZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8A8wZ.png" alt="Screenshot of the error"></a></p>