Is there any way of removing the Component added to the CENTER of a JPanel with a BorderLayout, without having to referen
Component
CENTER
JPanel
BorderLayout
Something like this?
BorderLayout layout = (BorderLayout)panel.getLayout(); panel.remove(layout.getLayoutComponent(BorderLayout.CENTER));