Difference between revisions of "JavaFX Setup"

From CSE231 Wiki
Jump to navigation Jump to search
Line 25: Line 25:
  
 
This program should bring up a graphical user interface with a single button which you can click on to test that JavaFX is working.
 
This program should bring up a graphical user interface with a single button which you can click on to test that JavaFX is working.
 +
 +
[[File:Java fx demo app.png]]
  
 
=Eclipse Java(FX) Plugin=
 
=Eclipse Java(FX) Plugin=

Revision as of 16:25, 23 January 2020

JavaFX 13 Runtime

Run FxDowload

  1. Command+Shift+T (Mac) or Control+Shift+T (Windows) "FxDownload"
  2. Run as Java Program

This program will download JavaFX 13, unzip it to your Downloads folder, and put the text needed for your Java VM Arguments into the clipboard. (Linux users may need to copy the text from the console.)

VM Args

  1. Load Eclipse's Preferences
  2. Type "vm" into the filter text box
  3. Select "Installed JREs"
  4. Select whichever JRE you are using
  5. Click the "Edit..." button
  6. Paste the text from the clipboard to the VM Argument
  7. Click the "Finish" button

Java fx preferences.png

Java fx preferences vm args.png

Run FxDemoApp

  1. Command+Shift+T (Mac) or Control+Shift+T (Windows) "FxDemoApp"
  2. Run as Java Program

This program should bring up a graphical user interface with a single button which you can click on to test that JavaFX is working.

Java fx demo app.png

Eclipse Java(FX) Plugin

Install the e(fx)clipse plugin from the Marketplace

Marketplace JavaFX.png