Skip to content

Commit

Permalink
Update JavaFX version in canvasfx module
Browse files Browse the repository at this point in the history
  • Loading branch information
aNNiMON committed Oct 9, 2024
1 parent e263de5 commit 7166478
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions docs/docs/en/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

### Modules
- [okhttp] Added `okhttp.newClient()` and `HttpClientBuilderValue`.
- [canvasfx] Updated JavaFX version.


## 2.0.0
Expand Down
3 changes: 2 additions & 1 deletion docs/docs/ru/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
- Исправлен visitor и проверки линтера внутри функций.

### Modules
- [okhttp] Добавлен `okhttp.newClient()` и `HttpClientBuilderValue`
- [okhttp] Добавлен `okhttp.newClient()` и `HttpClientBuilderValue`.
- [canvasfx] Обновлена версия JavaFX.


## 2.0.0
Expand Down
4 changes: 2 additions & 2 deletions modules/canvasfx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ plugins {
}

group = 'com.annimon.module'
version = '1.0.0'
version = '1.1.0'

javafx {
version = "17"
version = "21"
modules = [ 'javafx.controls', 'javafx.swing' ]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1019,12 +1019,12 @@ public Value execute(Value[] args) {
}

private static void handleEvent(Event event, final Function handler) {
if (event instanceof MouseEvent) {
handleMouseEvent((MouseEvent) event, handler);
} else if (event instanceof KeyEvent) {
handleKeyEvent((KeyEvent) event, handler);
} else if (event instanceof DragEvent) {
handleDragEvent((DragEvent) event, handler);
if (event instanceof MouseEvent me) {
handleMouseEvent(me, handler);
} else if (event instanceof KeyEvent ke) {
handleKeyEvent(ke, handler);
} else if (event instanceof DragEvent de) {
handleDragEvent(de, handler);
}
}

Expand Down

0 comments on commit 7166478

Please sign in to comment.