Skip to content

Instantly share code, notes, and snippets.

View FXObservableWithList.java
import java.util.ArrayList;
import java.util.List;
import javafx.beans.property.ListProperty;
import javafx.beans.property.Property;
import javafx.beans.property.SimpleListProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.value.WritableObjectValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
@tschulte
tschulte / FXObservableListMapSet(delombok).java
Created Apr 14, 2016
Handling of FXObservable Annotation for ObservableList, ObservableMap and ObservableSet
View FXObservableListMapSet(delombok).java
// Generated by delombok at Thu Apr 14 10:04:10 CEST 2016
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.collections.ObservableMap;
import javafx.collections.ObservableSet;
public class FXObservableListMapSet {
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private javafx.beans.property.ListProperty<java.lang.Integer> theListWithDefaultProperty;
@tschulte
tschulte / rxjava_progress.groovy
Created Nov 1, 2014
Automatically show progress of rxjava Observable
View rxjava_progress.groovy
@Grab('io.reactivex:rxjava:+')
@Grab('io.reactivex:rxswing:+')
import groovy.beans.Bindable
import groovy.swing.SwingBuilder
import rx.Observable
import rx.schedulers.*
import java.awt.BorderLayout
def sb = new SwingBuilder()
@tschulte
tschulte / innertable.adoc
Last active Aug 29, 2015
Table with inner table
View innertable.adoc
ID Address

[+]12345

Gutenbergstr. 5

85716

Unterschleißheim

[+]12346

Bavariastr. 6

80336

München

ID Address
@tschulte
tschulte / CustomBundleLocalization.java
Last active Aug 29, 2015
Use custom ResourceBundle.Control in Eclipse TranslationService and MessageFactoryService
View CustomBundleLocalization.java
package custom.translation;
import java.util.Dictionary;
import java.util.Locale;
import java.util.ResourceBundle;
import java.util.ResourceBundle.Control;
import kam.text.Utf8ResourceTextControl;
import org.eclipse.e4.core.internal.services.ResourceBundleHelper;