Skip to content

Instantly share code, notes, and snippets.

View GeoffCapper's full-sized avatar

Geoff GeoffCapper

  • Tasmania, Australia
View GitHub Profile
@GeoffCapper
GeoffCapper / globalvars.ts
Created July 9, 2020 08:52
Tests For TS Build 62630302
export let myvariable = 'hello world!';
@GeoffCapper
GeoffCapper / DragResizer.java
Last active June 23, 2022 19:04 — forked from andytill/DragResizer.java
DragResizer can be used to add mouse listeners to a Region and make it resizable by the user by clicking and dragging the border in the same way as a window. Height and width resizing from all cardinal points is possible, along with the option of dragging the region, and constraining it within the bounds of the parent.
import javafx.event.EventHandler;
import javafx.scene.Cursor;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.Region;
/**
* {@link DragResizer} can be used to add mouse listeners to a {@link Region}
* and make it moveable and resizable by the user by clicking and dragging the
* border in the same way as a window, or clicking within the window to move it
* around.