Skip to content

Instantly share code, notes, and snippets.

View oddbjornkvalsund's full-sized avatar

Oddbjørn Kvalsund oddbjornkvalsund

View GitHub Profile
package focusbug;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
package focusbug;
import javafx.scene.Parent;
import javafx.scene.control.TextField;
import org.junit.Test;
import org.loadui.testfx.GuiTest;
import static org.hamcrest.Matchers.is;
import static org.loadui.testfx.Assertions.verifyThat;
apply plugin: 'java'
task runDBTask(type: JavaExec) {
main = 'DBTask'
classpath = sourceSets.main.runtimeClasspath
}
task runPollTask(type: JavaExec, dependsOn: 'runDBTask') {
main = 'PollTask'
classpath = sourceSets.main.runtimeClasspath
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.SplitPane;
import javafx.scene.control.TextArea;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Priority;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.stage.Stage;
public class MonocleApplication extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
final Text node = new Text("A Text node.");
import com.sun.glass.ui.PlatformFactory;
import com.sun.glass.ui.monocle.MonoclePlatformFactory;
import com.sun.glass.ui.monocle.NativePlatformFactory;
import com.sun.glass.ui.monocle.headless.HeadlessPlatform;
import javafx.application.Application;
import java.lang.reflect.Field;
public class MonocleRunner {
Prism pipeline init order: sw
Using platform text rasterizer
Using native-based Pisces rasterizer
Using dirty region optimizations
Not using texture mask for primitives
Not forcing power of 2 sizes for textures
Using hardware CLAMP_TO_ZERO mode
Opting in for HiDPI pixel scaling
*** Fallback to Prism SW pipeline
Prism pipeline name = com.sun.prism.sw.SWPipeline
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000662050a6, pid=9992, tid=11392
#
# JRE version: Java(TM) SE Runtime Environment (8.0_31-b13) (build 1.8.0_31-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.31-b07 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [javafx_font.dll+0x50a6]
#
@oddbjornkvalsund
oddbjornkvalsund / Example.java
Created September 17, 2015 10:08
Automatic vertical resizing of VirtualFlow
import javafx.animation.Animation;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.application.Application;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.collections.FXCollections;
import javafx.collections.ListChangeListener;
import javafx.collections.ObservableList;
import javafx.scene.Scene;
import javafx.scene.control.Button;
@oddbjornkvalsund
oddbjornkvalsund / project.json
Last active November 3, 2016 12:52
Minimal .NET Core project-file that depends on fhir-net-api
{
"version": "1.0.0-*",
"dependencies": {
"Hl7.Fhir.DSTU2": "0.90.5",
"Portable.DataAnnotations": "1.0.0"
},
"frameworks": {
"netcoreapp1.0": {
"imports": [ "dnxcore50", "portable-net45" ],
"dependencies": {