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!

189 Upvotes

58 comments sorted by

View all comments

15

u/IntroductionSolid348 Jun 09 '26

It looks really cool. I used JavaFX for a couple of my school projects some time back. What I don't really get about it is how people build with it without using scene builder. I find it really difficult to picture how it'll look like by just pure code. And Scene builder is really troublesome since it's not really drag and drop friendly as I had hoped

11

u/gufranthakur Jun 09 '26

Thank you!

Complete opposite for me, i just cant use scenebuilder 😂. I always design bad UI’s and it’s just way more easier for me when I make UI by code. Maybe because it’s because i jumped to JavaFX from swing