That is a nasty problem. The red screens you get in the Window Builder editor, indicate there is a 'crash' (a fatal error) in the code of the TemperaturePanel's constructor.
But then... how to find it.
You will get the same error if you Run the application. But now, it will show all details of the error in the Console. And that's what we need to solve it.
Make the Console Window large. Then browse all the way to the top. Look at the image below. There is an invalid size (2) reported at the topmost line, related to line 35 of the code (1). If you click that link, it shows the code (3).
And indeed: for a Gap, a negative number (-36) is not allowed. Gap's should always be positive. If you remove the minus sign (change the value to 36) it will be fine.
Now, the question remains... How did that minus sign appear there? I do not know. Could be an error in the Window Builder? Or maybe a typo you made?