Managing jPanels in jSplitPane
Ladies and Gentlemen,
I am a .NET developer making the switch to Java for future development. Currently, I am authoring a swing application (Netbeans 6.1) that leverages multiple jPanels in an attempt to mimic a MDI UI. The parental UI hierarchy is:
Form > Main Panel > jSplitPane > jPanel
I have design-time default jPanels in the jSplitPane. So here are my questions:
1. When I dynamically instantiate and display jPanels, everything is fine. But when I hide and dispose those dynamic jPanels, my default jPanel is invisible. How do I redisplay my default jPanel?
2. How can I bubble-up jPanel events to my top-most Form? Is there a built-in event framework I can leverage or do I have to author a custom event model.
Thanks for your assistance.