Richard Searle

home

React vs Swing

05 Jul 2014

This code is part of an experiment to replace Swing user interfaces.

$JOB exclusively uses Swing for user interfaces. The primary justifications are “real time” updates and interaction complexity.

The latest project displays a schematic of hardware state(up/down, CPU temperature, etc.) and a few operations(shutdown/reboot). The user interface is almost 7000 lines of commented Java code, which seemed a little large.

The experiment implements perhaps 40% of the functionality:

Getting the layout correct via CSS was the hardest part (which is one reason for the size of the Java implementation).