Skip to content

Instantly share code, notes, and snippets.

Cannibalsticky cannibalsticky

Block or report user

Report or block cannibalsticky

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cannibalsticky
cannibalsticky / DragResizerXY.java
Last active Nov 8, 2018
DragResizerXY 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 are both working.
View DragResizerXY.java
import javafx.event.EventHandler;
import javafx.scene.Cursor;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.Region;
/**
* {@link DragResizerXY} can be used to add mouse listeners to a {@link Region}
* and make it resizable by the user by clicking and dragging the border in the
* same way as a window.
* <p>
You can’t perform that action at this time.