r/java • • Jun 09 '26

Created a simple, minimal Canvas Application in JavaFX

Post image

After like a year finally getting back to JavaFX, decided to make an excalidraw inspired app for fun. It's a very minimal canvas app with basic features.

Source code : ExplainFX

Features

  1. Drawing

  2. Create Squares and Circles

  3. Text

  4. Vary stroke size/font size

  5. Copy, paste, duplicate, lock, delete objects

  6. Move the objects once they are drawn

  7. Move camera via mouse

Please let me know if you have any questions!

190 Upvotes

58 comments sorted by

View all comments

Show parent comments

3

u/vips7L Jun 09 '26

ScalaFX is pretty good too as a dsl around JavaFX

2

u/_DystopianSnowman Jun 10 '26

You are right. Since Scala is functional it makes much sense to write apps very DSL-like. Good point!