Is there any way of removing the Component added to the CENTER of a JPanel with a BorderLayout, without having to reference the Component itself?
Component
CENTER
JPanel
BorderLayout
Something like this?
BorderLayout layout = (BorderLayout)panel.getLayout(); panel.remove(layout.getLayoutComponent(BorderLayout.CENTER));
1.4m articles
1.4m replys
5 comments
56.9k users