title: Problem with importing javafx packages: the type ... is not accessible
body: <p>I'm working on a project in Eclipse and I want to make use of JavaFX for my GUI. I installed JavaFX and I added it to my project library. However, every time I try to import packages, e.g.</p>
  <pre><code>import javafx.scene.control.Button;
  import javafx.scene.paint.Paint;`
  import javafx.scene.control.Alert;
  import javafx.scene.control.ButtonType;
  </code></pre>
  <p>then it reads : The type ... is not accessible.</p>
  <p>I'm totally new to programming in Java so I have little experience. Can someone please explain in detail how this can be resolved?</p>
  <p><a href="https://i.stack.imgur.com/orO1Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/orO1Z.png" alt="enter image description here" /></a></p>