Skip to content

Kotlin app demonstrating a JavaFX UI with some custom styling.

Notifications You must be signed in to change notification settings

SoyChai/price-rounder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

price-rounder

Small experiment to see how well Kotlin works with JavaFX, which turned out really elegantly. The apply { } block function is perfect for building UI controls in code, and Kotlin's lambdas are even more elegant than Java 8's thanks to the implicit it parameter for SAM functions.

The app itself just watches a text field (that rejects non-decimal inputs), rounds the input with BigDecimal#round(), and displays the result. The window is draggable by its background due to its hidden OS frame.

About

Kotlin app demonstrating a JavaFX UI with some custom styling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages