I’ve always loved LEGOs and this year for Christmas I got The LEGO Ideas Book. It has an entire chapter dedicated to practical applications of LEGOs such as card and pen holders. I also got this handy portable Bluetooth keyboard but our iPad’s case lacks the stand that some have. So, until we get one, I decided to build one and here are the results…
From a structural standpoint, the stand is fairly sturdy. It is mostly made from parts of an old LEGO fort from the Pirate series. This project was particularly interesting due to the engineering challenge of supporting and balancing the iPad’s weight while not shearing the bricks from their bases.
When working with IntelliJ’s GUI builder it is possible for custom implantations of JList to mysteriously be empty when using a custom model that was defined and set in the constructor. This can be very confusion and non trivial to track down. This can be caused by accidentally setting the model property in the GUI Builder. The solution is to right click and select “Restore Default Value.”
This appears to be an issue because IntelliJ’s GUI builder uses instrumentation to inject the component properties at runtime. Furthermore, this occurs after the constructor of the components are finished. So, in a custom JList implementation, great care must be taken not to override any properties in the GUI builder that are going to be defined in code.