title: class is not public in my package and cannot be accessed from outside package
body: <p>I am using the following <a href="https://bitbucket.org/controlsfx/controlsfx/src/e47cc550571abffff0ee56ea0f27683655cb076a/controlsfx/src/main/java/org/controlsfx/dialog/Dialogs.java?at=default#cl-532" rel="nofollow noreferrer">ControlFX</a> project. Hence, created a <code>Dialogs.java</code> class in my package and pasted the code from there.</p>
  
  <p>Since I am not Inside the package <code>org.controlsfx.dialog</code> , I have to do the following:</p>
  
  <p><strong><em>import org.controlsfx.dialog.LightweightDialog;</em></strong></p>
  
  <p>And I am getting the following error as shown in the image below: <img src="https://i.stack.imgur.com/2rqnM.jpg" alt="image"> </p>
  
  <p>When I went inside the package <code>org.controlsfx.dialog</code> and opened, <code>LightweightDialog.class</code>,</p>
  
  <p>I wasn't able to make the class public. </p>
  
  <p>How should I overcome this situation? Please advise.</p>