title: Some JavaFX Imports Cannot Be Resolved in Eclipse
body: <p>I am creating a small JavaFX library and have run into some issues with the imports. I have been doing my programming on both my PC and my laptop by just hosting the Eclipse Workspace on Dropbox and everything was working fine. I installed e(fx)clipse on both machines and have been making a JavaFX program for a couple months now with no issues.</p>
  
  <p>Now, I recently started a new project on my laptop that was also working fine; however, when I went to my PC, I discovered a bunch of "The import _____ cannot be resolved" errors.</p>
  
  <p>The weird thing is, most of the javafx classes are importing fine, it just seems that some classes in the <code>javafx.scene.control</code> package are having issues. In the one class I have so far, I am importing these JavaFX classes:</p>
  
  <pre><code>import javafx.application.Platform;
  import javafx.geometry.Pos;
  import javafx.scene.control.Button;
  import javafx.scene.control.ButtonType;
  import javafx.scene.control.Dialog;
  import javafx.scene.control.DialogPane;
  import javafx.scene.control.Label;
  import javafx.scene.control.TextField;
  import javafx.scene.layout.GridPane;
  import javafx.scene.layout.Priority;
  import javafx.scene.layout.Region;
  import javafx.stage.FileChooser;
  </code></pre>
  
  <p>They all work fine except for three: <code>javafx.scene.control.ButtonType</code>, <code>javafx.scene.control.Dialog</code>, and <code>javafx.scene.control.DialogPane</code>.</p>
  
  <p>I have done quite a bit of research and tried the following with no success:</p>
  
  <ul>
  <li>Uninstalled and reinstalled e(fx)clipse</li>
  <li>Manually added the jfxrt.jar file to the project</li>
  <li>Cleaned, rebuilt, and refreshed the project several times</li>
  <li>Removed the JRE from the build path and re-added it</li>
  <li>Recreated the project using New>JavaFX Project and copying the code
  over</li>
  </ul>
  
  <p>Nothing seems to be working and I do not understand how just some classes in the package could be missing on one computer. Does anybody have a solution for this?</p>