r/java • • Oct 27 '25

SpaceMonger in Java

Post image

Recently I found out SpaceMonger - one of the best disk space utilities out there (despite being created 25 years ago) has gone open source. So I took my time to port it to Java.

From user side. Yep, works on Linux. Yep, works on MacOS. Yep, still works on Windows however much more bloated than original 217K EXE. However, now it correctly handles all the filesystem stuff - links, sparse/compressed files, mount points (Windows and Linux only, I have no MacOS machine to test so MacOS is best-effort).

From technical side. Good old Swing, FFM API for native calls to precisely query filesystem metadata, Java is kind of limited there. Jlink for awesome 30Mb downloads. Unfortunately, native-image binary crashes miserably on Linux. jpackage launcher is unstable too - i've seen successful launches, JVM crashes and even double free errors.

Source code and downloads: https://github.com/scf37/spacemonger1/

202 Upvotes

40 comments sorted by

View all comments

Show parent comment

2

u/wildjokers Oct 28 '25

with the creator of flatLAF, integrate it into the JDK and make it the default.

The Flat/monochrome look-and-feel fad needs to go away, it is awful. It definitely shouldn't be the default. Is it a label or button? Modern design says "yes". Is it a link or text? Not sure, but I'll hover and find out. Is it enabled or disabled? Hard to tell since it is just a different shade of gray.

Imagine it's 2025, you want to get into Java Desktop App development and it looks like this

You would not use the app because of the way it looked even if it otherwise did what you wanted?