updated Java GUI code to display BME-280 sensor data from a ESP32
the left hand TextBox displays the serial data from the ESP32 which is parsed to set the TextFields on the right
as well as displaying the BME-280 data there is a button which when clicked switchs a LED on the ESP32 ON/OFF
Edit: the advantage of using Java is the same program run on Windows PC, looks exactly the same and without modification
the ESP32 is also running a webServer to display the BME-280 data