This file contains hidden or 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
// in a griffon view | |
// with the hypothetical TridentBuilder adding the animate node | |
frame( title: "Trident+Groovy", size: [400,200], | |
locationRelativeTo: null, visible: true ) { | |
flowLayout() | |
button = button("Sample", | |
foreground: animate([Color.BLUE, Color.RED], duration:2500, id:'tl'), | |
mouseEntered: {tl.play()}, | |
mouseExited: {tl.playReverse()}) |
This file contains hidden or 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 groovy.swing.SwingBuilder | |
import groovy.beans.Bindable | |
@Bindable class Model { | |
int intField | |
} | |
sb = new SwingBuilder() | |
model = new Model() | |
This file contains hidden or 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
Take my love, post no plan | |
Take me where I cannot stand | |
I don't care, the JDK is free | |
can't take the A P I from me | |
Make my gradients fade to black | |
Tell them it ain't comin' back | |
Burn some bridges to boil the sea | |
can't take the A P I from me | |
There's no place I can be | |
Since I found Java X dot Swing |
This file contains hidden or 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
# add to ~/.gradle/initscript.gradle | |
addListener(new ArtifactoryGradleSettings()) | |
class ArtifactoryGradleSettings extends BuildAdapter implements BuildListener { | |
def void projectsLoaded(Gradle gradle) { | |
Project root = gradle.getRootProject() | |
root.allprojects { | |
apply plugin: 'idea' | |
} |
This file contains hidden or 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) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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) { |
OlderNewer