Skip to content

Instantly share code, notes, and snippets.

View jschneider's full-sized avatar

Johannes Schneider jschneider

View GitHub Profile
@jschneider
jschneider / MigPaneExtensions.kt
Created November 8, 2018 07:41
MigPane extension methods for TornadoFX
import javafx.event.EventTarget
import javafx.scene.Node
import javafx.scene.Parent
import net.miginfocom.layout.AC
import net.miginfocom.layout.CC
import net.miginfocom.layout.ConstraintParser
import net.miginfocom.layout.LC
import org.tbee.javafx.scene.layout.MigPane
import tornadofx.*
@jschneider
jschneider / pom.xml
Created July 29, 2019 11:21
Basic pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.cedarsoft.training</groupId>
<artifactId>bosch-2019</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
package com.cedarsoft.autoresultat.ng.agents
import javafx.scene.paint.Color
import tornadofx.*
/**
* @author Johannes Schneider ([js@cedarsoft.com](mailto:js@cedarsoft.com))
*/
fun main(args: Array<String>) {
launch<StyleDemo>()
@jschneider
jschneider / navigation-bug.kt
Created November 8, 2017 10:47
Reproduces the navigation bug
import tornadofx.*
/**
* To reproduce use the navigation drawer to switch the views:
* ## Working as expected:
* * Press: View A
* * Press: View B (borward and back buttons work as expected)
*
* ## Not working as expected:
* * Press: View A
@jschneider
jschneider / cedarsoft.xml
Created October 25, 2013 08:17
Code Style Setting
<?xml version="1.0" encoding="UTF-8"?>
<code_scheme name="cedarsoft">
<option name="USE_SAME_INDENTS" value="true" />
<option name="IGNORE_SAME_INDENTS_FOR_LANGUAGES" value="true" />
<option name="JAVA_INDENT_OPTIONS">
<value>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="4" />
<option name="TAB_SIZE" value="8" />
<option name="USE_TAB_CHARACTER" value="false" />