Skip to content

Instantly share code, notes, and snippets.

Avatar

Johannes Schneider jschneider

View GitHub Profile
@jschneider
jschneider / pom.xml
Created Jul 29, 2019
Basic pom.xml
View 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>
@jschneider
jschneider / MigPaneExtensions.kt
Created Nov 8, 2018
MigPane extension methods for TornadoFX
View MigPaneExtensions.kt
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.*
View popup-style.kt
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 Nov 8, 2017
Reproduces the navigation bug
View navigation-bug.kt
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 Oct 25, 2013
Code Style Setting
View cedarsoft.xml
<?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" />