Skip to content

Instantly share code, notes, and snippets.

Dan Armbrust darmbrust

Block or report user

Report or block darmbrust

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@darmbrust
darmbrust / JavaFX Tooltip Configuration
Last active Mar 26, 2018
A utility method to allow setting the global timing parameters on tooltips in JavaFX (Java 8)
View JavaFX Tooltip Configuration
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import javafx.scene.control.Tooltip;
import javafx.util.Duration;
import org.slf4j.LoggerFactory;
/**
* {@link ToolTipDefaultsFixer}
*
* @author <a href="mailto:daniel.armbrust.list@gmail.com">Dan Armbrust</a>
@darmbrust
darmbrust / JSch logging
Created Nov 6, 2014
A bit of example code that routes logging from Jsch to SLF4j (using Java 8)
View JSch logging
import java.util.HashMap;
import java.util.function.BooleanSupplier;
import java.util.function.Consumer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.jcraft.jsch.JSch;
/**
* Demonstrates enabling and routing JSch (http://www.jcraft.com/jsch/) logging
* into SLF4J (http://www.slf4j.org/) logging using Java 8
You can’t perform that action at this time.