Skip to content

Instantly share code, notes, and snippets.

@phdoerfler
Created March 25, 2013 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phdoerfler/5240113 to your computer and use it in GitHub Desktop.
Save phdoerfler/5240113 to your computer and use it in GitHub Desktop.
Example Output for sbtFX
// This FXML:
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.paint.*?>
<AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml" fx:controller="org.fancy.Controller">
<children>
<Button fx:id="meep" layoutX="89.0" layoutY="33.0" text="Button" />
</children>
</AnchorPane>
// results in this .scala code:
package org.fancy
import javafx.fxml.FXML
import javafx.scene.control.Button
object Controller {
@FXML
Button meep
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment