r/java•
theLorem

How do people use Java Swing?

Hi Reddit,
I'm working at a company with a fairly large Java Swing desktop frontend. The Project itself is very old, but there was a lot of commitment to keep the codebase clean, which resulted in many self-written LayoutManagers which solved most of the common problems. Sadly these are not open to the public and even if - there is no documentation and the knowledge is all in the head of our seniors. But this got me thinking: The LayoutManagers provided by Swing are either very simple (BorderLayout, FlowLayout), useless for real-world scenarios (GridLayout) or very complicated (GridBagLayout). This resulted that every company I worked at some point developed their own tools to streamline Swing development. Another company I worked with used a XML Format which was transpiled to GridBagLayout-Code to at least save some of the hassle, but it was still rather painful from what I've heared. Do you know any github projects with a clean swing codebase I can learn from? If you're a Swing Developer, how are you are using it?

Posted Jun 4, 2021, 9:39 AM UTC

10455
Loading comments…