This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example.scalajfx | |
import org.scalatest.matchers.ShouldMatchers | |
import org.scalatest.FlatSpec | |
import org.jemmy.fx.SceneDock | |
import org.jemmy.fx.AppExecutor | |
import org.jemmy.fx.control.ToggleButtonDock | |
import org.jemmy.fx.control.LabeledDock | |
class JavaFXExampleSpec extends FlatSpec with ShouldMatchers { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.ladstatt.apps.watersimulation | |
import javafx.application.Application | |
import javafx.fxml.FXML | |
import javafx.fxml.FXMLLoader | |
import javafx.fxml.Initializable | |
import javafx.fxml.JavaFXBuilderFactory | |
import javafx.scene.Parent | |
import javafx.scene.Scene | |
import javafx.scene.layout.StackPane |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.ladstatt.apps.watersimulation | |
import scala.collection.JavaConversions.seqAsJavaList | |
import javafx.animation.Animation | |
import javafx.animation.KeyFrame | |
import javafx.animation.Timeline | |
import javafx.application.Application | |
import javafx.event.ActionEvent | |
import javafx.event.EventHandler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.ladstatt.apps | |
import scala.collection.JavaConversions.seqAsJavaList | |
import scala.math.Pi | |
import scala.math.cos | |
import scala.math.sin | |
import scala.util.Random | |
import javafx.application.Application | |
import javafx.event.EventHandler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.ladstatt.apps | |
import scala.collection.JavaConversions.seqAsJavaList | |
import scala.math.Pi | |
import scala.math.cos | |
import scala.math.sin | |
import scala.util.Random | |
import javafx.animation.Animation | |
import javafx.animation.KeyFrame |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project default="main"> | |
<target name="main"> | |
<echo message="This line is executed in an external build.xml for javafx version: ${javafx.version}"/> | |
</target> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class JaggedLine extends javafx.application.Application { | |
val canvasWidth = 1024 | |
val canvasHeight = 768 | |
val jaggingSections = 100 | |
val jaggedFactor = 2 | |
override def start(primaryStage: Stage): Unit = { | |
primaryStage.setTitle("Level1") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GlowingLine extends javafx.application.Application { | |
val canvasWidth = 1024 | |
val canvasHeight = 768 | |
override def start(primaryStage: Stage): Unit = { | |
primaryStage.setTitle("Level0") | |
val root = new BorderPane() | |
val drawingBoard = new Group() | |
val background = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.ladstatt.apps | |
import scala.collection.JavaConversions.asScalaBuffer | |
import scala.collection.JavaConversions.seqAsJavaList | |
import scala.util.Random | |
import javafx.animation.Animation | |
import javafx.animation.KeyFrame | |
import javafx.animation.Timeline | |
import javafx.application.Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.ladstatt.apps | |
/* | |
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
* | |
* This code is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License version 2 only, as | |
* published by the Free Software Foundation. Oracle designates this | |
* particular file as subject to the "Classpath" exception as provided |
OlderNewer