This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javafx.application.Application; | |
import javafx.scene.Node; | |
import javafx.scene.SceneBuilder; | |
import javafx.scene.control.ScrollPane; | |
import javafx.scene.control.ScrollPaneBuilder; | |
import javafx.scene.control.SplitPane; | |
import javafx.scene.control.SplitPaneBuilder; | |
import javafx.scene.layout.Region; | |
import javafx.scene.layout.VBox; | |
import javafx.scene.text.Text; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* SNIP */ | |
uploadArchives { | |
repositories { | |
mavenDeployer { | |
repository( | |
url:"https://api.bintray.com/maven/shemnon/javafx-gradle/plugin/", | |
id: 'bintray-shemnon-javafx-gradle-plugin' | |
) { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply from: 'https://repository-javafx-gradle-plugin.forge.cloudbees.com/snapshot/javafx.plugin' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Approach A - Just annotate the property method | |
StyleableDoubleProperty size = new StyleableDoubleProperty(this, "size", 1.0); | |
StyleableDoubleProperty weight = new StyleableDoubleProperty(this, "weight", 200); | |
@Styleable("-x-weight", initial="200pt") | |
public DoubleProperty weightProperty() {return weight;} | |
@Styleable("-x-size") | |
public StyleableDoubleProperty sizeProperty() {return size;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final void setBackScale(double value) { | |
backScaleProperty().set(value); | |
} | |
public final double getBackScale() { | |
return backScale == null ? 0.7 : backScale.get(); | |
} | |
public final DoubleProperty backScaleProperty() { | |
if (backScale == null) { | |
backScale = new StyleableDoubleProperty(0.7) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<?import java.lang.*?> | |
<?import javafx.scene.*?> | |
<?import javafx.scene.control.*?> | |
<?import javafx.scene.layout.*?> | |
<AnchorPane xmlns:fx="http://javafx.com/fxml" | |
id="AnchorPane" | |
prefHeight="150.0" prefWidth="320.0" > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
griffon package jfx-native |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
griffon create-app MyJavaFXApp -archetype=javafx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.Random; | |
import java.util.concurrent.Callable; | |
public class PermissionVsForgiveness { | |
int[] a1, a2, a3, a4; | |
Callable<Integer> permission = new Callable<Integer>() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread-2477@12271, prio=6, in group 'main', status: 'MONITOR' | |
blocks Thread-2476@12270 | |
blocks AWT-EventQueue-0@10510 | |
waiting for Thread-2476@12270 to release lock on {1} | |
at org.pushingpixels.flamingo.api.common.icon.ImageWrapperIcon.setPreferredSize(ImageWrapperIcon.java:203) | |
at org.pushingpixels.flamingo.api.common.icon.ImageWrapperResizableIcon.setPreferredSize(ImageWrapperResizableIcon.java:43) | |
at org.pushingpixels.flamingo.api.common.icon.ImageWrapperResizableIcon.setDimension(ImageWrapperResizableIcon.java:126) | |
at org.pushingpixels.flamingo.api.common.icon.LayeredIcon.setDimension(LayeredIcon.java:64) | |
at org.pushingpixels.flamingo.internal.ui.common.BasicCommandButtonUI.syncIconDimension(BasicCommandButtonUI.java:1228) | |
at org.pushingpixels.flamingo.internal.ui.common.BasicCommandButtonUI$2$1.completed(BasicCommandButtonUI.java:282) |