Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scalafx/scalafx-hello-world
Simple example of a ScalaFX application
https://github.com/scalafx/scalafx-hello-world
sbt scala scalafx scalafx-application scalafx-framework scalafx-tutorials
Last synced: 4 days ago
JSON representation
Simple example of a ScalaFX application
- Host: GitHub
- URL: https://github.com/scalafx/scalafx-hello-world
- Owner: scalafx
- License: unlicense
- Created: 2014-06-01T00:26:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-11-17T23:06:20.000Z (12 months ago)
- Last Synced: 2024-03-26T14:20:42.975Z (8 months ago)
- Topics: sbt, scala, scalafx, scalafx-application, scalafx-framework, scalafx-tutorials
- Language: Scala
- Size: 49.8 KB
- Stars: 30
- Watchers: 8
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
scalafx-hello-world
===================Simple example of a ScalaFX application using [Simple-Build-Tool](http://www.scala-sbt.org/) (SBT).
Branches
--------Branch [master](https://github.com/scalafx/scalafx-hello-world/tree/master) contains an example with the current Scala 3
syntax,
branch [Scala2](https://github.com/scalafx/scalafx-hello-world/tree/Scala2) contains the same example with the old Scala
2 syntax.Content
-------* `src/main/scala/hello/ScalaFXHelloWorld.scala` - sample ScalaFX application.
* `build.sbt` - the main SBT configuration file.
* `project/build.properties` - version of SBT to use.
* `project/plugins.sbt` - plugins used for creation of IDEA and Eclipse projects.How to build and Run
--------------------1. Install [Java 17 JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html) or newer.
If you are want to use Java 8 look at the [SFX-8](https://github.com/scalafx/scalafx-hello-world/tree/SFX-8) branch of this project.2. Install [SBT](http://www.scala-sbt.org/)
3. Run the example: change to the directory containing this example and use SBT to build and run the example:
```
%> sbt run
```It will download needed dependencies, including Scala and ScalaFX, and run the example code.
Additional Information
----------------------Detailed description of similar example can be found in the blog post
["Getting Started with ScalaFX: Compile and Run"](http://codingonthestaircase.wordpress.com/2013/05/17/getting-started-with-scalafx-compile-and-run-2/)
.Gradle Version
-----------[Gradle](https://gradle.org/) version of this example can be found
in [ScalaFX-Hello-World-Gradle](https://github.com/scalafx/ScalaFX-Hello-World-Gradle)