Skip to content

Instantly share code, notes, and snippets.

View ryanjaeb's full-sized avatar

Ryan Jaeb ryanjaeb

View GitHub Profile
@ryanjaeb
ryanjaeb / windowsservercore-vs_BuildTools
Created August 28, 2017 03:54
Application crash when trying to install Visual Studio 2017 Build Tools on windowsservercore:10.0.14393.1593.
https://developercommunity.visualstudio.com/content/problem/81514/2017-build-tools-fails-to-install-on-windows-serve.html
# Input
Get-EventLog -LogName 'Application' -EntryType 'Error' -Message '*vs_setup*'
# Output
Index Time EntryType Source InstanceID Message
----- ---- --------- ------ ---------- -------
241 Aug 27 20:39 Error Application Error 1000 Faulting application name: vs_setup_bootstrapper.exe, version: 1.11.2334.10236, time
import com.sun.javafx.scene.control.skin.VirtualFlow;
import com.sun.javafx.tk.Toolkit;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.collections.ObservableList;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.IndexedCell;
import javafx.scene.control.ListView;
import javafx.stage.Stage;
import org.reactfx.value.Var;
import java.util.ArrayList;
import java.util.List;
public class ObservableTestForReactFX {
/* When running this application, I often get the output:
*
* JVM: 1.8.0_40-b25
* q:0 -> 2
@ryanjaeb
ryanjaeb / AnotherExampleService.java
Last active August 29, 2015 14:14
JavaFX RT-39953 Workaround
// This example keeps the conditional title binding in the service
// implementation. The service implementation is a more logical place
// to decide what behavior is allowable plus it allows different behavior
// for different implementations. It also works with the
// SimpleTitleCellValueFactory implementation.
public class AnotherExampleService extends Service<Void> implements ServiceTitle {
private final String unboundServiceTitle = "Another Example Service";
private final StringProperty serviceTitle = new SimpleStringProperty();
public final ReadOnlyStringProperty serviceTitleProperty() {return serviceTitle;}
@ryanjaeb
ryanjaeb / pkg-zfs-126
Last active August 29, 2015 14:12
pkg-zfs-126
See: https://github.com/zfsonlinux/pkg-zfs/issues/126
package javafx;
import com.sun.javafx.tk.Toolkit;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.fxml.FXMLLoader;
import javafx.stage.Stage;
import jfxtras.test.TestUtil;
import org.junit.Rule;
import org.junit.rules.TestRule;
import javafx.application.Application;
import javafx.beans.property.ReadOnlyStringProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.scene.Scene;
import javafx.scene.control.TreeItem;
import javafx.scene.control.TreeTableColumn;
import javafx.scene.control.TreeTableView;
import javafx.scene.control.cell.TreeItemPropertyValueFactory;
import javafx.stage.Stage;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Slider;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.stage.Stage;
public class TableMenuButtonOverlapsColumns extends Application {
@Override
package fx.fxml.view.fxml;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import org.junit.Test;
import org.loadui.testfx.GuiTest;
import org.mockito.Mockito;
import java.io.IOException;
import com.sun.javafx.application.LauncherImpl;
import javafx.application.Application;
import javafx.application.Preloader;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.Label;
import javafx.scene.control.MenuItem;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;