globaltcad / swing-tree

A small DSL library for building Swing UIs
MIT License
6 stars 0 forks source link

193 fix on show does not behave as expected #228

Closed Gleethos closed 1 week ago

Gleethos commented 2 weeks ago

Instead of a ComponentListener, these changes move over to an AncestorListener, which seems to have the expected behavior...

I added an example for testing this. It also works for tab contents, so I think this is the solution we are looking for.