Resizing a panel that uses a CardLayout
I have a panel (mainPanel) that uses GridBagLayouts.
mainPanel contains two panels:
1- panel1: contains 3 JRadioButtons
2- panel2: uses CardLayout to show 3 panels based on the JRadioButtons selection. (one of the 3 panels (editorPanel) contains a JEditorPane added to a JScrollPane)
Now when im resizing the mainPanel, the JEditorPane in the editorPanel is not resizing.
Is there any way to make the JEditorPane resizable while using cardLayout?
Thanks

