posted 18 years ago
Hello :-)
I am trying to add three JTabbedPane's ( each with sub-components ) to a JPanel. The JPanel uses a CardLayout and as I need to change the specific JTabbedPane dynamically at runtime, I need to use addLayoutComponent( Container container, Object name ) so that I can change the displayed component by calling show( Container parent, Object name ).
When I add the JTabbedPane's using the GUI editor, the calls to show(...) do nothing - I am guessing that this is because the GUI editor does not automatically detect that components added to a cardLayout managed JPanel usually require dynamic display. Instead, the GUI editor uses a straight forward add(...) method.
I am new to Netbeans. How do I add the JTabbedPane's to a CardLayout managed JPanel so that I can dynamically display specific JTabbedPane's at runtime using show(...)
Thanks.
Darren