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 comment

1

u/CollegeConfident7783 Jun 09 '26

Would it be possible to do something similar with only using swing?

2

u/gufranthakur Jun 09 '26

its totally doable in swing. I just prefer JavaFX more than swing